api:auth:logout
Table of Contents
API : Authentication Logout
Introduction
The logout function is not strictly needed. When the users session ends, just delete the token and consider the session for ended. The Logout function serves the purpose of invalidating all valid tokens that the user may have been issued.
Request
| URL | https://api.telecomx.dk/auth/logout |
|---|---|
| Method | GET |
Response
| JSON object | |
|---|---|
| success | true |
Errors
Errors
| Error code | Message | Description |
|---|---|---|
| 401 | credentials_invalid | Authorization required, please login |
| 401 | expired | Session has expired, please login |
| 401 | invalid_token | IP address not authenticated |
| 403 | blacklisted | IP address is blacklisted |
| 500 | internal_error | Internal server error |
| 400 | bad request | Unspecified error |
api/auth/logout.txt · Last modified: 2021/09/03 09:02 by Per Møller