Installation
Basic Usage
Available Managers
The Authentication client provides access to several specialized managers:- Database - Database authentication (signup, password change)
- OAuth - OAuth 2.0 flows (authorization code, password, client credentials, etc.)
- MFA - Multi-factor authentication operations
- Passwordless - Passwordless authentication via email or SMS
- CIBA - Client-Initiated Backchannel Authentication
Configuration Options
The client can be configured with various options during initialization:User Info
Retrieve user profile information using an access token:Error Handling
The package exports anauthentication.Error type for handling API errors:
Types
UserInfoResponse
Response from the user info API:The Auth0 user identifier
Full name of the user
Given name(s) or first name(s) of the user
Surname(s) or last name(s) of the user
Middle name(s) of the user
Casual name of the user
Shorthand name by which the user wishes to be referred
URL of the user’s profile page
URL of the user’s profile picture
URL of the user’s web page or blog
The user’s preferred email address
Whether the user’s email address has been verified
The user’s gender
The user’s birthday in ISO 8601:2004 YYYY-MM-DD format
User’s time zone as a tz database name
The user’s locale as a BCP47 language tag
The user’s preferred telephone number
Whether the user’s phone number has been verified
The user’s preferred postal address
Time and date the user’s information was last updated
Unknown claims in the response that are not defined in the struct
UserAddress
Full mailing address, formatted for display
Full street address component
City or locality component of the address
State, province, or region component
Zip or postal code component
Country component of the address