Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Understanding access tokens, refresh tokens, and token lifecycle
import { useAuth } from 'ai-auth'; function MyComponent() { const { getAccessToken } = useAuth(); // Always returns valid token (auto-refreshes if needed) const token = getAccessToken(); }