Auth class
Authentication class Learn more: https://nylo.dev/docs/6.x/authentication
Constructors
- Auth()
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
-
authenticate(
{dynamic data}) → Future< void> - Authenticate user
-
data(
{String? key}) → dynamic - Get the user data.
-
deviceId(
) → Future< String?> - Get the device id.
-
isAuthenticated(
) → Future< bool> - Check if the user is authenticated.
-
key(
) → String - Get the auth key
-
logout(
) → Future - Logout auth.
-
syncToBackpack(
) → dynamic - Sync the auth user data to the backpack.
-
update(
dynamic update(dynamic data)) → dynamic - Update the auth user data.