PassageCurrentUser class

Constructors

PassageCurrentUser()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPasskey([PasskeyCreationOptions? options]) Future<Passkey>
Attempts to create and register a new passkey for the authenticated user.
changeEmail(String newEmail, {String? language}) Future<MagicLink>
Initiates an email change for the authenticated user. An email change requires verification, so an email will be sent to the user which they must verify before the email change takes effect.
changePhone(String newPhone, {String? language}) Future<MagicLink>
Initiates a phone number change for the authenticated user. A phone change requires verification, so an email will be sent to the user which they must verify before the phone change takes effect.
deletePasskey(String passkeyId) Future<void>
Removes a passkey from a user's account. NOTE: This does NOT remove the passkey from the user's device, but revokes that passkey so it's no longer usable.
deleteSocialConnection(SocialConnection socialConnectionType) Future<void>?
Deletes a social connection for the authenticated user.
editPasskey(String passkeyId, String friendlyName) Future<Passkey>
Edits the friendlyName of the authenticated user's device passkey.
logout() Future<void>?
Signs out the current user, clearing local tokens and logging out of the system.
metadata() Future<Metadata?>
Fetches the metadata associated with the authenticated user.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
passkeys() Future<List<Passkey>>?
Retrieves a list of WebAuthn passkeys associated with the authenticated user.
socialConnections() Future<UserSocialConnections?>
Retrieves the social connections for the authenticated user.
toString() String
A string representation of this object.
inherited
updateMetadata(Metadata metaData) Future<CurrentUser>?
Updates the metadata associated with the authenticated user.
userInfo() Future<CurrentUser>
Returns the user information for the currently authenticated user.

Operators

operator ==(Object other) bool
The equality operator.
inherited