Hera class

Available extensions

Constructors

Hera()

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 Properties

onLogout Function?
getter/setter pair

Static Methods

createUser({UserProfile? profile, UserIdentifier? identifier, String? password}) Future<User>
currentUser() User
getAccessToken() Future<String>
getRefreshToken() Future<String>
initialize({required String namespace, required String apiUrl, bool? debug, TransportCredentials? credentials, String? redirectUrl}) Future<void>
initializeAuth() Future<Config>
isAuthenticated() Future<bool>
login({required UserIdentifier identifier, required String password}) Future<LoginSession>
loginWithOidc({required OidcProviderType type, required String authorizationUrl}) Future<LoginSession>
logout() Future<void>
resetPassword({required String userId, required String code, required String newPassword}) Future<void>
sendResetPasswordEmail({required String email}) Future<VerificationCode>
sendResetPasswordText({required String phoneNumber}) Future<VerificationCode>
uploadProfileImage({required Uint8List data}) Future<String>
verifyEmail({UserIdentifier? identifier, required String code}) Future<void>
verifyPhone({UserIdentifier? identifier, required String code}) Future<void>