Skip to main content

Disable my other sessions

DELETE 

/auth/sessions

Calling this endpoint invalidates all except the current session that belong to the logged-in user. Session data are not deleted.

Request

Header Parameters

    X-Session-Token string

    Set the Session Token when calling from non-browser clients. A session token has a format of MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj.

    Cookie string

    Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server.

Responses

deleteMySessionsCount

Schema
    count int64

    The number of sessions that were revoked.

Loading...