Auth

Logout user

POST
http://localhost:3000/api/auth/logout

Revokes the provided refresh token. If no token is supplied, the token from the current request context is used. Individual revocation failures are logged but do not cause the request to fail.

Body

application/json

Optional token pair to revoke.

refresh_tokenstring

Refresh token to revoke.

Response

200OK

Successfully logged out. The provided token has been revoked.

400Bad Request

Request body is malformed or contains unrecognized fields.

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey