Documentation Index
Fetch the complete documentation index at: https://mintlify.com/auth0/go-auth0/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Authentication API client provides methods to interact with Auth0’s Authentication API for user authentication operations, including signup, login, password reset, and OAuth token exchanges.Initialization
Create an Authentication API client by providing your Auth0 domain and client credentials:The
WithClientSecret option is optional and depends on the authentication grants you plan to use. Some flows may not require a client secret.Private Key JWT Authentication
For enhanced security, you can use private key JWT authentication instead of client secrets:Basic Operations
Once initialized, you can perform various authentication operations:Database Signup
Create a new user account in a database connection:OAuth Login
Authenticate users using OAuth flows:Configuration Options
The Authentication API client supports several configuration options:Available Options
WithClientID(id)- Set the client ID for API requestsWithClientSecret(secret)- Set the client secret for authenticationWithClientAssertion(pem, alg)- Use private key JWT authenticationWithClockTolerance(duration)- Set clock tolerance for token validation
Error Handling
The Authentication API returns typed errors that you can check and handle appropriately. See the Error Handling page for detailed information about handling Authentication API errors.Next Steps
Error Handling
Learn how to handle Authentication API errors
Management API
Learn about the Management API client