Skip to main content
era_flutter creates and stores a visitorId. Your backend sends that ID and the conversation to Era with the Node SDK.
Never put a secret Node SDK API key in your Flutter app.
1

Install

Add the package to pubspec.yaml:
2

Create the client

A publishable key can be included in the app.
3

Initialize the visitor

The SDK reuses the visitor across app launches when preferences are available.
4

Send the visitor to your backend

For the server-side integration flow, see the Node SDK quickstart.

Verify email or phone

Your app owns the verification UI:
Use 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:
Call close() when you are finished with the client:
API and network failures throw 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.