diff --git a/docs/content/docs/(documentation)/usage/sdk.mdx b/docs/content/docs/(documentation)/usage/sdk.mdx index 8f95b7f..f2537d7 100644 --- a/docs/content/docs/(documentation)/usage/sdk.mdx +++ b/docs/content/docs/(documentation)/usage/sdk.mdx @@ -266,6 +266,16 @@ const { data } = await api.auth.register("password", { }); ``` +### `auth.logout()` + +To log out the current user and clear the stored token, use the `logout` method: + +```ts +await api.auth.logout(); +``` + +This method takes no parameters. It sends a request to the logout endpoint and clears the authentication token. Returns a `Promise`. + ### `auth.me()` To retrieve the current user, use the `me` method: