GET
/
api
/
v1
/
auth
/
login
Redirects the user to Auth0’s authentication page to begin the OAuth 2.0 authentication flow.

Flow

  1. User accesses this endpoint with a redirect_uri parameter
  2. Server generates a state token for CSRF protection
  3. User is redirected to Auth0’s universal login page
  4. After authentication with Auth0, user is redirected to the callback endpoint
No authentication is required to access this endpoint.

Parameters

redirect_uri
string
required
URL to redirect the user after successful authentication

Example

curl "https://api.garnet.ai/v1/auth/login?redirect_uri=http://localhost:3000/dashboard"

Response

Returns a 302 redirect to Auth0’s authentication page with the Location header containing the Auth0 authorization URL.