Create a client
string
required
Base URL of the Era service.
string
required
Publishable key for browser identity and verification requests.
init(visitorId?)
Loads the stored visitor or creates one.
era_vid_.
Pass a lowercase UUIDv4 when your application already has a visitor UUID:
getVisitorId()
Reads the current visitor without creating one.
null when none exists.
getVerification()
Checks whether the current visitor is linked to an Era end user.
eraEndUserId is an opaque Era ID or null. It is not proof that the user is
signed in to your application.
startVerification(type, identifier)
Sends an email or phone verification code.
confirmVerification(challengeId, code)
Confirms a code and links the current visitor.
resendVerification(challengeId)
Sends another code.
resetVisitor()
Replaces the current visitor and returns the new ID.
visitor_reset.
Storage
The SDK stores the visitor inlocalStorage under: