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.
handleLoginCallback
Login configuration
Optional
Optional login options (direct login, etc.)
import { loginWithRedirect } from '@imtbl/auth';// In your login button handlerloginWithRedirect({ clientId: 'your-client-id', redirectUri: 'https://your-app.com/callback',}); Copy
import { loginWithRedirect } from '@imtbl/auth';// In your login button handlerloginWithRedirect({ clientId: 'your-client-id', redirectUri: 'https://your-app.com/callback',});
Login with redirect. Redirects the current page to OAuth authentication. After authentication, the user will be redirected back to your redirectUri. Use
handleLoginCallbackto complete the flow.