Function: logout()
function logout(cluster: string, skipRedirect?: boolean): Promise<void>;
Defined in: lib/auth.ts:148
Logs out the user by clearing the authentication token for the specified cluster. For OIDC clusters, redirects to the IdP logout endpoint to properly end the session.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
cluster | string | undefined | The name of the cluster to log out from. |
skipRedirect | boolean | false | If true, skip the OIDC logout redirect (caller handles navigation). |
Returns
Promise<void>
Throws
When logout request fails