Log out a customer device (revoke its refresh token)
POST
/auth/logout
Revokes the family of the given customer refreshToken (this device's sign-in), so it can no longer be refreshed. Idempotent: an unknown or already revoked token answers revoked: false. No bearer needed (an app whose access token has expired can still sign out). Without a body it is a no-op, as before. The 7-day access token is stateless and stays valid until it expires — the client drops it.
Auth: Public (no authentication); the refresh token is the credential.
Request Body
application/json
JSON "refreshToken": "string"
{
}
Responses
Logged out
application/json
JSON "ok": true, "message": "string", "data": { "revoked": true }
{
}