> ## Documentation Index
> Fetch the complete documentation index at: https://replyke-feat-push-rich-payload-fields.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Sign Out

> Sign out a user by invalidating their refresh token

Signs the user out by deleting the refresh token from the database and clearing the HttpOnly cookie. Accepts the refresh token from either the request body or cookie.

## Headers

<ParamField header="Cookie" type="string">
  Can include `replyke-refresh-jwt` cookie with the refresh token
</ParamField>

## Body Parameters

<ParamField body="refreshToken" type="string">
  JWT refresh token (optional if provided via cookie)
</ParamField>

## Response

<Info>
  Returns **204 No Content** on success with no response body
</Info>

## Error Responses

<AccordionGroup>
  <Accordion title="Server Error - 500 Internal Server Error">
    ```json theme={null}
    {
      "error": "Internal server error.",
      "code": "auth/server-error",
      "details": "<Error message>"
    }
    ```
  </Accordion>
</AccordionGroup>

***

## Notes

* If the refresh token is valid, the corresponding token record is deleted.
* If the refresh token is invalid, expired, or missing, 204 is still returned.
* The cookie `replyke-refresh-jwt` is cleared if present.
* No information is leaked about whether the token existed or was valid.
