Logout

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.

Overview

Endpoint

Request Body

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

Responses

Success (Code 204)

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

Usage

  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 refresh token is valid and associated with the user's current session.

Last updated

#16: lucenaluis137's Dec 28 changes

Change request updated