helpers/auth library

Classes

Auth
Authentication class Learn more: https://nylo.dev/docs/6.x/authentication

Mixins

HasApiService<T extends NyApiService>
HasApiService mixin

Functions

authAuthenticate({dynamic data}) Future<void>
Authenticate user
authData({String? key}) → dynamic
Get the user data
authDeviceId() Future<String?>
Get the device id
authIsAuthenticated() Future<bool>
Check if the user is authenticated
authKey() String
Get the auth key
authLogout() Future<void>
Logout user
authSyncToBackpack() Future<void>
Sync the auth user data to the backpack
authUpdate(dynamic update(dynamic data)) Future<void>
Update the auth user data