HeraService class

Constructors

HeraService({required ServiceClient grpcUserClient, required dynamic authorize, required String jwtPublicKey, required SharedPreferences sharedPreferences, required String namespace, required bool debug})

Properties

debug bool
final
grpcUserClient ServiceClient
final
hashCode int
The hash code for this object.
no setterinherited
jwtPublicKey String
final
namespace String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sharedPreferences → SharedPreferences
final

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>

Operators

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