Auth API
Logout
Logout (invalidates the token on the client side)
Note: JWTs are stateless, so this endpoint is mainly for logging and to allow the client to "forget" the token. For true server-side invalidation, a token blacklist would be needed.
Args: credentials: Bearer token from Authorization header
Returns: Logout confirmation
post/api/auth/logout
Request
- Base URLhttps://api.top-posters.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 4 revisions of this API.