era_flutter creates and stores a visitorId. Your backend sends that ID and
the conversation to Era with the Node SDK.
1
Install
Add the package to
pubspec.yaml:2
Create the client
3
Initialize the visitor
4
Send the visitor to your backend
Verify email or phone
Your app owns the verification UI:VerificationType.phone with an E.164 phone number. Use
resendVerification() only after a user action.
The SDK does not store codes or challenge details. Keep them only in temporary
UI state. eraEndUserId is a continuity hint, not proof that the user is
authenticated in your app.
Reset and close
Reset the visitor after logout, account switching, or a shared-device user change:close() when you are finished with the client:
EraFlutterException. Inspect code,
message, retryable, and statusCode.
Next steps
Identity lifecycle
Learn about verification, reset, and cleanup.
Flutter SDK reference
See every client method and option.