The "Logout" endpoint enables users to securely log out of their session. Below are the details on how to integrate the logout functionality into your application.



  • Method: POST

  • URL: /api/auth/logout

Request Body

  "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI1ZWJhYzUzNDk1NGI1NDEzOTgwNmMxMTIiLCJpYXQiOjE1ODkyOTg0ODQsImV4cCI6MTU4OTMwMDI4NH0.m1U63blB0MLej_WfB7yC2FTMnCziif9X8yzwDEfJXAg"
  • refreshToken: The refresh token associated with the user's current session.


Success (Code 204)

  • No Content: The server successfully processed the request, and there is no additional content to send.


  1. Send a POST request to the provided endpoint with the user's refresh token.

  2. Handle the response accordingly based on success (no content) or not found.

Note: Ensure the provided {refreshToken} is valid and associated with the user's current session.

Last updated