From 65e17db2a20f03cefa9a30a93bfab0f510ea1159 Mon Sep 17 00:00:00 2001 From: Jonas Perusquia Morales Date: Thu, 4 Dec 2025 14:48:11 -0600 Subject: [PATCH] feat: Add documentation for auth.logout method in SDK usage --- docs/content/docs/(documentation)/usage/sdk.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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: