POST
/v1/auth/logoutall

Authorization

Descope Project ID:Refresh JWT
AuthorizationBearer <token>

Project ID:Refresh JWT as bearer token.

In: header

Request Body

application/json

logoutType?array<string>
string
ssoLogout?boolean

Also log the user out of their SSO identity provider (descope/etc#20773). When the session signed in through a SAML SSO configuration with single logout on, the response's ssoLogoutUrl sends the browser to the IdP with a signed LogoutRequest; once the IdP logs the user out, it sends the browser back to Descope, which redirects to redirectUrl. The Descope session ends either way.

redirectUrl?string

With ssoLogout, where the browser lands once the IdP has logged the user out. Must be in the project's approved domains. Empty uses the SSO configuration's redirect URL.

Log the user out from all signed-in sessions

This API endpoint will sign the user out of all the devices they are currently signed-in with. Successfully executing this endpoint will invalidate all user's refresh tokens. Response will include all user tokens and fields empty, so client will remove cookies as well.

curl -X POST "https://api.descope.com/v1/auth/logoutall" \  -H "Content-Type: application/json" \  -d '{}'
{  "cookieDomain": "string",  "cookiePath": "string",  "ssoLogoutUrl": "string"}
/** * The field numbers are JWTResponse's, which logout returned before: a gRPC caller on either version reads the other's *  response the same way during a deployment. */export interface Response {/** * The domain and path of the cookies the logout deleted */cookieDomain?: stringcookiePath?: string/** * Set by a logout with ssoLogout when the session signed in through a SAML SSO configuration with single logout *  on: send the browser here to log the user out of the IdP too. Absent when there is nothing to do at the IdP. *  Not a JWTResponse field, so an older caller ignores it. */ssoLogoutUrl?: string}
Was this helpful?