User Logout

POST /user/logout/

Use the POST /user/logout/ endpoint to log out users by invalidating their refresh token.


Parameters

Name

Type

Location

Required

Description

data

Object

Body

Yes

The request body containing the refresh token.


Request Body

Field

Type

Description

refresh

String

The refresh token to invalidate. Must be at least 1 character long.

Example Request Body

{
  "refresh": "string"
}

Responses

Code

Description

201

The logout was successful.

Example Response Body

{
  "refresh": "string"
}

Last updated