Skip to content
Logo

api.auth.logout

Revoke a refresh token server-side and clear the configured tokenStore. If you don't pass a token, the client uses the one currently in the store.

await ..();          // uses the stored refresh token
await ..("rt_…");    // or pass an explicit one
ArgumentTypeNotes
refresh_token?stringOptional. Defaults to the value in the store.

Returns: Promise<void>.

REST endpoint: POST /auth/logout.