logout
client.logout({ redirectTo: string, removeCredentials: boolean, // optional arguments revocationParams: string[] })
About this command
Kill the current user’s SSO session.
Use the Revoke refresh token endpoint to invalidate all active user tokens on a specific client_id .
|
Examples
client.logout({
redirectTo: 'https://my-site.com/logout',
revocationParams: ['eyJ..V1QiL']
})
Parameters
Parameter | Description | ||
---|---|---|---|
The URL to which the user is redirected afterward. This URL must be whitelisted in the |
|||
An array of strings that is used to pass any access or refresh tokens that should be invalidated after a logout.
|
|||
Delete the user credentials with the Credentials Management API. See loginWithCredentials for more on logging in with credentials. Defaults to
|