SuperBetterAuthClient class abstract
- Available extensions
- Annotations
-
- @RestApi.new(callAdapter: BetterAuthCallAdapter)
Constructors
- SuperBetterAuthClient(Dio dio, {String? baseUrl, ParseErrorLogger? errorLogger})
-
factory
Properties
- admin → AdminBetterAuth
-
Available on SuperBetterAuthClient, provided by the AdminBetterAuthExtension extension
no setter - emailOtp → EmailOtpBetterAuth
-
Available on SuperBetterAuthClient, provided by the EmailAuthBetterAuthExtension extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- jwt → JwtBetterAuth
-
Available on SuperBetterAuthClient, provided by the JwtBetterAuthExtension extension
no setter - organization → OrganizationClient
-
Available on SuperBetterAuthClient, provided by the OrganizationExtension extension
no setter - phone → PhoneBetterAuth
-
Available on SuperBetterAuthClient, provided by the PhoneBetterAuthExtension extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signIn → SignInBetterAuth
-
Available on SuperBetterAuthClient, provided by the SignInBetterAuthExtension extension
no setter - signUp → SignUpBetterAuth
-
Available on SuperBetterAuthClient, provided by the SignUpBetterAuthExtension extension
no setter -
Available on SuperBetterAuthClient, provided by the SocialBetterAuthExtension extension
no setter
Methods
-
changeEmail(
{required String newEmail, String? callbackURL}) → Future< Result< StatusResponse> > -
changePassword(
{required String newPassword, required String currentPassword, String? revokeOtherSessions}) → Future< Result< SignUpResponse> > -
clearCookie(
String name) → Future< void> -
Available on SuperBetterAuthClient, provided by the CookieExtension extension
Clear a specific cookie by name -
clearCookies(
) → Future< void> -
Available on SuperBetterAuthClient, provided by the CookieExtension extension
Clear all cookies for the current domain -
deleteUser(
{String? callbackURL, String? password, String? token}) → Future< Result< SuccessResponse> > -
forgotPassword(
{required String email, String? redirectTo}) → Future< Result< StatusResponse> > -
getAuthCookies(
) → Future< Map< String, String?> > -
Available on SuperBetterAuthClient, provided by the CookieExtension extension
Get authentication-related cookies commonly used by Better Auth Returns session, token, and other auth-related cookies -
getCookie(
String name) → Future< String?> -
Available on SuperBetterAuthClient, provided by the CookieExtension extension
Get a specific cookie by name Returns the cookie value or null if not found -
getCookies(
) → Future< Map< String, String> > -
Available on SuperBetterAuthClient, provided by the CookieExtension extension
Get all stored cookies for the current domain Returns a map of cookie names to values -
getCookiesByNames(
List< String> names) → Future<Map< String, String?> > -
Available on SuperBetterAuthClient, provided by the CookieExtension extension
Get multiple cookies by names Returns a map with only the requested cookies (empty values for missing cookies) -
getSession(
) → Future< Result< SessionResponse> > -
hasCookie(
String name) → Future< bool> -
Available on SuperBetterAuthClient, provided by the CookieExtension extension
Check if a specific cookie exists -
listSessions(
) → Future< Result< List< >Session> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetPassword(
{required String newPassword, String? token}) → Future< Result< StatusResponse> > -
revokeOtherSessions(
{Map< String, dynamic> body = const {}}) → Future<Result< StatusResponse> > -
revokeSession(
{Map< String, dynamic> body = const {}}) → Future<Result< StatusResponse> > -
revokeSessions(
{Map< String, dynamic> body = const {}}) → Future<Result< StatusResponse> > -
sendVerificationEmail(
{required String email, String? callbackURL}) → Future< Result< StatusResponse> > -
signOut(
{Map< String, dynamic> body = const {}}) → Future<Result< SignOutResponse> > -
toString(
) → String -
A string representation of this object.
inherited
-
updateUser(
{String? name, String? image}) → Future< Result< StatusResponse> > -
verifyEmail(
{required String token, String? callbackURL}) → Future< Result< VerifyEmailResponse> >
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited