Account class

The Account service allows you to authenticate and manage a user account.

Constructors

Account(Client client)

Properties

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

Methods

create({required String userId, required String email, required String password, String? name}) Future<Account>
Create Account
createAnonymousSession() Future<Session>
Create Anonymous Session
createEmailSession({required String email, required String password}) Future<Session>
Create Email Session
createJWT() Future<Jwt>
Create JWT
createMagicURLSession({required String userId, required String email, String? url}) Future<Token>
Create Magic URL session
createOAuth2Session({required String provider, String? success, String? failure, List<String>? scopes}) Future
Create OAuth2 Session
createPhoneSession({required String userId, required String phone}) Future<Token>
Create Phone session
createPhoneVerification() Future<Token>
Create Phone Verification
createRecovery({required String email, required String url}) Future<Token>
Create Password Recovery
createVerification({required String url}) Future<Token>
Create Email Verification
deleteSession({required String sessionId}) Future
Delete Session
deleteSessions() Future
Delete Sessions
get() Future<Account>
Get Account
getPrefs() Future<Preferences>
Get Account Preferences
getSession({required String sessionId}) Future<Session>
Get Session
listLogs({List<String>? queries}) Future<LogList>
List Logs
listSessions() Future<SessionList>
List Sessions
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateEmail({required String email, required String password}) Future<Account>
Update Email
updateMagicURLSession({required String userId, required String secret}) Future<Session>
Create Magic URL session (confirmation)
updateName({required String name}) Future<Account>
Update Name
updatePassword({required String password, String? oldPassword}) Future<Account>
Update Password
updatePhone({required String phone, required String password}) Future<Account>
Update Phone
updatePhoneSession({required String userId, required String secret}) Future<Session>
Create Phone Session (confirmation)
updatePhoneVerification({required String userId, required String secret}) Future<Token>
Create Phone Verification (confirmation)
updatePrefs({required Map prefs}) Future<Account>
Update Preferences
updateRecovery({required String userId, required String secret, required String password, required String passwordAgain}) Future<Token>
Create Password Recovery (confirmation)
updateSession({required String sessionId}) Future<Session>
Update OAuth Session (Refresh Tokens)
updateStatus() Future<Account>
Update Status
updateVerification({required String userId, required String secret}) Future<Token>
Create Email Verification (confirmation)

Operators

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