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

config ↔ HeraConfig
getter/setter pair
oidcProviders List<OidcProviderType>
getter/setter pair
onAuthenticated Function
getter/setter pair
onLogout Function
getter/setter pair
redirectUrl → dynamic
no setter

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, TransportCredentials? credentials, bool? debug, String? redirectUrl, List<OidcProviderType>? excludeOidcProviders, List<LoginType>? excludeAuthMechanisms}) Future<void>
initializeAuth() Future<HeraConfig>
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>
setOnAuthenticated(Function function) → dynamic
setOnLogout(Function function) → dynamic
setTokenPair({String? accessToken, String? refreshToken}) Future
uploadProfileImage({required Uint8List data}) Future<String>
verifyEmail({UserIdentifier? identifier, required String code}) Future<void>
verifyPhone({UserIdentifier? identifier, required String code}) Future<void>