Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Use this API to revoke a refresh token. It needs a request with a valid refresh_token in the form of an Authorization: Bearer <refresh_token>. It will return a JSON confirmation message or an error message.

Example Query

Code Block
languagetext
titlePOST Query URI
http://danteweb.lnf.infn.it:8000/auth/logout/refresh

PAYLOAD:
POST Query header


Code Block
languagetext
titlePOST Query Header
Authorization: Bearer <refresh_token>

It will return:


Code Block
languagejs
titleAPI Response
{
	"message": "Refresh token has been revoked"
}

...