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| Argument | Type | Notes |
|---|---|---|
refresh_token? | string | Optional. Defaults to the value in the store. |
Returns: Promise<void>.
REST endpoint: POST /auth/logout.
