HeraService class
Constructors
-
HeraService({required ServiceClient grpcUserClient, required dynamic authorize, required String jwtPublicKey, required SharedPreferences sharedPreferences, required String namespace, required bool debug})
-
Methods
-
createUser({String? userId, String? username, String? email, String? image, String? password, dynamic metadata})
→ Future<User>
-
-
getAccessToken()
→ Future<String>
-
-
getConfig()
→ Future<Config>
-
-
getCurrentUser()
→ Future<User>
-
-
isAuthenticated()
→ Future<bool>
-
-
login({String? userId, String? username, String? email, required String password})
→ Future<LoginSession>
-
-
logout()
→ Future<void>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
verifyEmailCode({String? userId, String? username, String? email, required String code, required LoginType loginType})
→ Future<void>
-