Function loginWithRedirect

  • Login with redirect. Redirects the current page to OAuth authentication. After authentication, the user will be redirected back to your redirectUri. Use handleLoginCallback to complete the flow.

    Parameters

    Returns Promise<void>

    import { loginWithRedirect } from '@imtbl/auth';

    // In your login button handler
    loginWithRedirect({
    clientId: 'your-client-id',
    redirectUri: 'https://your-app.com/callback',
    });