{
  "name": "internet-identity-shared-sessions",
  "title": "Internet Identity Shared Sessions",
  "category": "Auth",
  "description": "Share one Internet Identity sign-in across sibling subdomains, so signing in on one app signs the user in on the others without a second visit to II, and signing out on one signs them out everywhere. Covers the shared record with CookieStateStorage, the /reauth route that silently acquires each app's own credential under transport: 'redirect' and prompt: 'none', the per-origin /.well-known/ii-auth-callbacks document, reading signed-in-elsewhere on load and offering it mid-session, and what ends a shared session. Use when two or more apps under one domain must share one signed-in user, when moving between them asks the user to sign in again, or when /reauth bounces in a loop. Every app must already derive from one elected primary origin: load internet-identity and settle that first. Do NOT use for a single app on one origin, which needs none of this, or for apps on unrelated domains, which cannot share a cookie.",
  "license": "Apache-2.0",
  "compatibility": "@icp-sdk/auth >= 11.0.0",
  "updated": "2026-11-06T11:13:33.000Z",
  "urls": {
    "html": "https://skills.internetcomputer.org/skills/internet-identity-shared-sessions/",
    "markdown": "https://skills.internetcomputer.org/.well-known/skills/internet-identity-shared-sessions/SKILL.md",
    "json": "https://skills.internetcomputer.org/api/skills/internet-identity-shared-sessions.json",
    "source": "https://github.com/dfinity/icskills/blob/5b70e9d86495af101c8d683fafb2bdfad7d2a578/skills/internet-identity-shared-sessions/SKILL.md"
  },
  "publisher": {
    "name": "DFINITY Foundation",
    "url": "https://dfinity.org"
  },
  "canonicalRepo": {
    "name": "dfinity/icskills",
    "url": "https://github.com/dfinity/icskills"
  }
}
