Visitor ID
Callinit() before sending a visitor ID to your backend:
SharedPreferencesAsync. The storage key is:
Provide an existing UUID
Pass a lowercase UUIDv4 when your application already has a visitor UUID:era_vid_ prefix when needed. Invalid values throw
ArgumentError before a request is made.
Verify email or phone
Start a challenge:VerificationType.phone and an E.164 phone
number.
Verification proves control of the email address or phone number. It does not
sign the user in to your app. The returned eraEndUserId is an opaque
continuity ID, not an authorization credential.
Resend a code
Reset a visitor
Reset after logout, account switching, or a shared-device user change:EraFlutterException with code visitor_reset.
Close the client
close() aborts requests owned by this client. It also closes the HTTP client
when Era created it or when you passed ownsHttpClient: true.
Calls after close() throw EraFlutterException with code client_closed.