Skip to content

docs: guide for shared sessions across subdomains - #147

Closed
sea-snake wants to merge 1 commit into
feat/auth-configurable-sync-storagefrom
feat/auth-shared-session-docs
Closed

docs: guide for shared sessions across subdomains#147
sea-snake wants to merge 1 commit into
feat/auth-configurable-sync-storagefrom
feat/auth-shared-session-docs

Conversation

@sea-snake

@sea-snake sea-snake commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Adds a guide explaining how to sign in once across sibling subdomains of one domain: a shared derivationOrigin for one principal, a SyncCookieStorage to share sign-in state, and a silent prompt: 'none' sign-in to acquire the session on an app that does not have it yet.

Covers configuring each app, the 'redirect' transport's /.well-known/ii-auth-callbacks requirement, sign-in / sign-out, acquiring the session on page load, and reacting to changes in other tabs and apps via AuthClient.subscribe.

Explains signing in once across sibling subdomains: a shared derivationOrigin
for one principal, a SyncCookieStorage to share sign-in state, and a silent
prompt=none sign-in to acquire the session on an app that does not have it yet.
Covers the redirect callback allow-list, cross-app sign-out, and reacting to
sign-in/out in other tabs via AuthClient.subscribe.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@sea-snake

Copy link
Copy Markdown
Contributor Author

Superseded by #150, rebuilt on the #149 storage API (the old syncStorage option / KEY_STORAGE_DELEGATION no longer exist).

@sea-snake sea-snake closed this Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant