Documentation Index Fetch the complete documentation index at: https://docs-dev.auth0-mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
import React , { useState } from "react" ;
import {
useLogin ,
useUser ,
useTenant ,
useBranding ,
useClient ,
useOrganization ,
usePrompt ,
useUntrustedData ,
} from "@auth0/auth0-acul-react/login" ;
Context Hooks
Hook to access branding and theme configuration. import { useBranding } from '@auth0/auth0-acul-react/login-id' ;
function CustomTheme () {
const branding = useBranding ();
}
Hook to access Auth0 application (client) configuration. import { useClient } from '@auth0/auth0-acul-react/login-id' ;
function AppInfo () {
const client = useClient ();
}
Hook to access organization context and settings. import { useOrganization } from '@auth0/auth0-acul-react/login-id' ;
function OrgSelector () {
const organization = useOrganization ();
if ( ! organization ) {
return < p > No organization context </ p > ;
}
}
Hook to access prompt configuration and flow settings. import { usePrompt } from '@auth0/auth0-acul-react/login-id' ;
function FlowInfo () {
const prompt = usePrompt ();
}
Hook to access current screen information and metadata. Screen object containing current screen name, configuration, and screen-specific data import { useScreen } from '@auth0/auth0-acul-react/login-id' ;
function ScreenDebug () {
const screen = useScreen ();
}
Hook to access tenant configuration and settings. import { useTenant } from '@auth0/auth0-acul-react/login-id' ;
function TenantInfo () {
const tenant = useTenant ();
}
Hook to access transaction state and authentication flow data. Transaction object containing flow state, session data, and transaction-specific information import { useTransaction } from '@auth0/auth0-acul-react/login-id' ;
function TransactionInfo () {
const transaction = useTransaction ();
}
Hook to access untrusted data from URL parameters and form submissions. import { useUntrustedData } from '@auth0/auth0-acul-react/login-id' ;
function PrefilledForm () {
const untrustedData = useUntrustedData ();
}
Hook to access user information and profile data. import { useUser } from '@auth0/auth0-acul-react/login-id' ;
function UserProfile () {
const user = useUser ();
}
Methods
Properties The social connection name to use
Properties Optional captcha value if required
The password for authentication
The username/email to login with
Common/Utility Hooks