Build the logout URL for federated logout. This URL can be used to redirect to the auth domain's logout endpoint, which clears the session on the auth server (including social provider sessions).
Logout configuration
The full logout URL
import { buildLogoutUrl } from '@imtbl/auth';const logoutUrl = buildLogoutUrl({ clientId: 'your-client-id', logoutRedirectUri: 'https://your-app.com',});// => "https://auth.immutable.com/v2/logout?client_id=your-client-id&returnTo=https://your-app.com" Copy
import { buildLogoutUrl } from '@imtbl/auth';const logoutUrl = buildLogoutUrl({ clientId: 'your-client-id', logoutRedirectUri: 'https://your-app.com',});// => "https://auth.immutable.com/v2/logout?client_id=your-client-id&returnTo=https://your-app.com"
Build the logout URL for federated logout. This URL can be used to redirect to the auth domain's logout endpoint, which clears the session on the auth server (including social provider sessions).