Revoke Refresh Tokens
Business application can call this API to revoke the refresh tokens generated for a user. The refresh token is generated and sent when a successful authentication request is made.
|
https://api.signinghub.com/tokens |
||
|
HTTP Verb |
DELETE |
|
|
Authorization |
Bearer {access_token} |
|
|
Content-Type |
application/x-www-form-urlencoded |
|
|
Accept |
application/json |
|
|
Request Body |
refresh_token=45ghiukldjahdnhzdauz&token_type_hint=refresh_token
|
|
|
Status Code |
Message |
Response Body |
|
200 |
OK |
|
| 401 | Unauthorized |
{ "Message" : "Invalid or expired refresh token"} |
| 400 | Bad Request |
{ "Message" : "Invalid or expired refresh token"} |
| 403 | Forbidden |
{ "Message":"Account is disabled"} |
|
500 |
Internal Server Error |
{ "Message": "An internal server error occurred while processing the request"} |
| Item Details |
|
| Names |
Description |
| Request Parameters | |
| access_token | Users access token |
| refresh_token | OAuth refresh access token to revoke. |
| token_type_hint | Type of token. Currently only refresh_token is supported. |
| Response Parameters |
|
| Message | The service specific error message returned by the API. This message provides useful information about why the service has returned an error response. |