UserAuthentication class

Collects methods for authenticating users.

Constructors

UserAuthentication()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

signInUser(Session session, int userId, String method, {Set<Scope> scopes = const {}}) Future<AuthKey>
Signs in an user to the server. The user should have been authenticated before signing them in. Send the AuthKey.id and key to the client and use that to authenticate in future calls. In most situations you should use one of the auth providers instead of this method.
signOutUser(Session session, {int? userId}) Future<void>
Signs out a user from the server and deletes all authentication keys. This means that the user will be signed out from all connected devices.