single-sign-in

Installation
SKILL.md

Single Sign-In

Prerequisite

Load the user-sign-in skill first and settle "Your app's identity is its primary origin". Everything here assumes one elected primary origin whose ii-alternative-origins already authorizes every sibling.

That is not a courtesy link. Apps share a sign-in only when they share a principal, and a shared cookie does not produce one. Build this on top of separate principals and every app reads a record naming an account it can never hold, which is the /reauth loop in that skill's mistakes list.

What this gets you

A user of a suite of apps, say chat.example.com, hr.example.com and docs.example.com, signs in once. Every other app in the suite opens already signed in, with no second visit to Internet Identity, and signing out of any one signs them out of all.

Principals are per origin, so every app must derive from one primary origin, listed in that origin's /.well-known/ii-alternative-origins. Without it each app sees a different user and there is nothing to share.

1. Share the record

Every app builds its client with the same derivation origin and the same cookie domain, so a sign-in on one writes a record the others read:

Installs
22
GitHub Stars
40
First Seen
11 days ago