Login with a popup window. Opens a popup for OAuth authentication and returns tokens when complete.
Login configuration
Optional
Optional login options (direct login, etc.)
Promise resolving to token response
Error if popup is blocked or login fails
import { loginWithPopup } from '@imtbl/auth';const tokens = await loginWithPopup({ clientId: 'your-client-id', redirectUri: 'https://your-app.com/callback',});console.log(tokens.accessToken); Copy
import { loginWithPopup } from '@imtbl/auth';const tokens = await loginWithPopup({ clientId: 'your-client-id', redirectUri: 'https://your-app.com/callback',});console.log(tokens.accessToken);
Login with a popup window. Opens a popup for OAuth authentication and returns tokens when complete.