Sign-Out

Log the user out from the provided session

This API endpoint will sign the user out of the provided session using the refreshToken. Successfully executing this endpoint will invalidate the provided refresh tokens. Response will also include all user tokens and fields empty, so the executing client will remove cookies as well.

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer <Project ID:Refresh JWT>

SecurityAuthProjectIdJwt
Request
Request Body schema: application/json
required
object (onetimev1.LogoutRequest)
Responses
200

OK

post/v1/auth/logout
Request samples
Response samples
application/json
{
  • "sessionJwt": "string",
  • "refreshJwt": "string",
  • "cookieDomain": "string",
  • "cookiePath": "string",
  • "cookieMaxAge": 0,
  • "cookieExpiration": 0,
  • "user": {
    },
  • "firstSeen": true,
  • "idpResponse": {
    }
}