AuthGraphQlMixin mixin

Authentication related functionality.

Mixin applications

Properties

client GraphQlClient
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token AccessTokenSecret?
getter/setter pair

Methods

createConfirmationCode(MyUserIdentifier identifier, {String? locale}) Future<void>
Generates and sends a new single-use ConfirmationCode for the MyUser identified by the provided MyUserIdentifier.
deleteSession({SessionId? id, MyUserCredentials? confirmation, AccessTokenSecret? token}) Future<void>
Destroys the specified Session of the authenticated MyUser, or the current one (if the id argument is not provided).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshSession(RefreshTokenSecret secret) Future<RefreshSession$Mutation>
Refreshes a Session of the MyUser identified by the provided RefreshTokenSecret.
signIn({required MyUserCredentials credentials, required MyUserIdentifier identifier}) Future<SignIn$Mutation$CreateSession$CreateSessionOk>
Creates a new Session for the MyUser identified by the provided MyUserIdentifier.
signUp({UserLogin? login, UserPassword? password}) Future<SignUp$Mutation$CreateUser>
Creates a new MyUser having only id and unique num fields, along with a Session for him (valid for the returned expiration).
toString() String
A string representation of this object.
inherited
validateConfirmationCode({required MyUserIdentifier identifier, required ConfirmationCode code}) Future<void>
Validates the provided ConfirmationCode for the MyUser identified by the provided MyUserIdentifier without using it.
validateToken(Credentials creds) Future<ValidateToken$Query>
Validates the authorization token of the provided Credentials.

Operators

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