Skip to main content

SsrAuthApi

For AI agents: see llms.txt for the complete documentation index. Markdown versions are available by adding .md to a page URL or requesting Accept: text/markdown.

The refresh and sign-out API for an SSR client, where the refresh token lives in an httpOnly cookie that JS can't read.

Refreshing goes through an HTTP request to the SSR host, which carries the refresh token in the cookie and replies with a SlimTokenBundle containing a new access token, or null when the session is gone.

Properties​

PropertyType
refreshSession() => Promise<SlimTokenBundle | null>
signOut() => Promise<void>