Skip to main content
Install @korve-dev/app-auth and use an explicit browser or server entrypoint.
The default browser storage is compatible with client-only applications, but an XSS bug could read its tokens. For server-rendered and security-sensitive apps, exchange callbacks and rotate refresh tokens in server routes. Store application-owned tokens in Secure, HttpOnly, SameSite=Lax __Host- cookies with no Domain attribute, and apply CSRF protection to writes.
App-user tokens are separate from operator API keys and runtime tokens. Configure policy and inspect the endpoint contract in the App Auth API.