Auth0Web class

Primary interface for interacting with Auth0 on web platforms.

Constructors

Auth0Web(String domain, String clientId)
Creates an instance of the Auth0Web client with the provided domain and clientId properties.

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

credentials({String? audience, num? timeoutInSeconds, Set<String>? scopes, CacheMode? cacheMode, Map<String, String> parameters = const {}}) Future<Credentials>
Retrieves a set of credentials for the user.
hasValidCredentials() Future<bool>
Indicates whether a user is currently authenticated.
loginWithPopup({String? audience, String? organizationId, String? invitationUrl, int? maxAge, Set<String>? scopes, dynamic popupWindow, int? timeoutInSeconds, Map<String, String> parameters = const {}}) Future<Credentials>
Opens a popup with the /authorize URL using the parameters provided as parameters.
loginWithRedirect({String? audience, String? redirectUrl, String? organizationId, String? invitationUrl, int? maxAge, Set<String>? scopes, Map<String, String> parameters = const {}}) Future<void>
Redirects the user to Auth0 Universal Login to log into the app.
logout({bool? federated, String? returnToUrl}) Future<void>
Redirects the browser to the Auth0 logout endpoint to end the user's session.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onLoad({int? authorizeTimeoutInSeconds, CacheLocation? cacheLocation, String? cookieDomain, int? httpTimeoutInSeconds, String? issuer, int? leeway, bool? useLegacySameSiteCookie, int? sessionCheckExpiryInDays, bool? useCookiesForTransactions, bool? useFormData, bool? useRefreshTokens, bool? useRefreshTokensFallback, String? audience, Set<String>? scopes, Map<String, String> parameters = const {}}) Future<Credentials?>
Initializes the client.
toString() String
A string representation of this object.
inherited

Operators

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