cursedauth 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +87 -0
  3. package/dist/account/AccountMenu.d.ts +153 -0
  4. package/dist/account/AccountMenu.d.ts.map +1 -0
  5. package/dist/account/AccountMenu.js +388 -0
  6. package/dist/account/AccountMenu.js.map +1 -0
  7. package/dist/account/AccountNotice.d.ts +35 -0
  8. package/dist/account/AccountNotice.d.ts.map +1 -0
  9. package/dist/account/AccountNotice.js +133 -0
  10. package/dist/account/AccountNotice.js.map +1 -0
  11. package/dist/account/accountNotice.state.d.ts +20 -0
  12. package/dist/account/accountNotice.state.d.ts.map +1 -0
  13. package/dist/account/accountNotice.state.js +55 -0
  14. package/dist/account/accountNotice.state.js.map +1 -0
  15. package/dist/account/avatar.d.ts +37 -0
  16. package/dist/account/avatar.d.ts.map +1 -0
  17. package/dist/account/avatar.js +47 -0
  18. package/dist/account/avatar.js.map +1 -0
  19. package/dist/accountSlot.client.d.ts +113 -0
  20. package/dist/accountSlot.client.d.ts.map +1 -0
  21. package/dist/accountSlot.client.js +330 -0
  22. package/dist/accountSlot.client.js.map +1 -0
  23. package/dist/accountSlots.d.ts +192 -0
  24. package/dist/accountSlots.d.ts.map +1 -0
  25. package/dist/accountSlots.js +274 -0
  26. package/dist/accountSlots.js.map +1 -0
  27. package/dist/auth.d.ts +167 -0
  28. package/dist/auth.d.ts.map +1 -0
  29. package/dist/auth.js +310 -0
  30. package/dist/auth.js.map +1 -0
  31. package/dist/auth.server.d.ts +35 -0
  32. package/dist/auth.server.d.ts.map +1 -0
  33. package/dist/auth.server.js +67 -0
  34. package/dist/auth.server.js.map +1 -0
  35. package/dist/clientDescription.d.ts +186 -0
  36. package/dist/clientDescription.d.ts.map +1 -0
  37. package/dist/clientDescription.js +278 -0
  38. package/dist/clientDescription.js.map +1 -0
  39. package/dist/constantTime.d.ts +35 -0
  40. package/dist/constantTime.d.ts.map +1 -0
  41. package/dist/constantTime.js +46 -0
  42. package/dist/constantTime.js.map +1 -0
  43. package/dist/contentCensus.d.ts +59 -0
  44. package/dist/contentCensus.d.ts.map +1 -0
  45. package/dist/contentCensus.js +55 -0
  46. package/dist/contentCensus.js.map +1 -0
  47. package/dist/index.d.ts +25 -0
  48. package/dist/index.d.ts.map +1 -0
  49. package/dist/index.js +24 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/mountGatedApp.d.ts +128 -0
  52. package/dist/mountGatedApp.d.ts.map +1 -0
  53. package/dist/mountGatedApp.js +107 -0
  54. package/dist/mountGatedApp.js.map +1 -0
  55. package/dist/runtimeMode.d.ts +28 -0
  56. package/dist/runtimeMode.d.ts.map +1 -0
  57. package/dist/runtimeMode.js +37 -0
  58. package/dist/runtimeMode.js.map +1 -0
  59. package/dist/secureRequest.d.ts +22 -0
  60. package/dist/secureRequest.d.ts.map +1 -0
  61. package/dist/secureRequest.js +27 -0
  62. package/dist/secureRequest.js.map +1 -0
  63. package/dist/sso.d.ts +373 -0
  64. package/dist/sso.d.ts.map +1 -0
  65. package/dist/sso.js +420 -0
  66. package/dist/sso.js.map +1 -0
  67. package/dist/ssoAutoSignIn.d.ts +272 -0
  68. package/dist/ssoAutoSignIn.d.ts.map +1 -0
  69. package/dist/ssoAutoSignIn.js +431 -0
  70. package/dist/ssoAutoSignIn.js.map +1 -0
  71. package/dist/ssoConsumer.server.d.ts +295 -0
  72. package/dist/ssoConsumer.server.d.ts.map +1 -0
  73. package/dist/ssoConsumer.server.js +972 -0
  74. package/dist/ssoConsumer.server.js.map +1 -0
  75. package/dist/stageIdentity.d.ts +72 -0
  76. package/dist/stageIdentity.d.ts.map +1 -0
  77. package/dist/stageIdentity.js +74 -0
  78. package/dist/stageIdentity.js.map +1 -0
  79. package/dist/ui/popover.d.ts +190 -0
  80. package/dist/ui/popover.d.ts.map +1 -0
  81. package/dist/ui/popover.js +351 -0
  82. package/dist/ui/popover.js.map +1 -0
  83. package/dist/userSessions.d.ts +205 -0
  84. package/dist/userSessions.d.ts.map +1 -0
  85. package/dist/userSessions.js +419 -0
  86. package/dist/userSessions.js.map +1 -0
  87. package/package.json +115 -0
  88. package/src/account/AccountMenu.tsx +729 -0
  89. package/src/account/AccountNotice.tsx +223 -0
  90. package/src/account/accountNotice.state.ts +66 -0
  91. package/src/account/avatar.ts +50 -0
  92. package/src/accountSlot.client.ts +362 -0
  93. package/src/accountSlots.ts +305 -0
  94. package/src/auth.server.ts +89 -0
  95. package/src/auth.ts +515 -0
  96. package/src/clientDescription.ts +366 -0
  97. package/src/constantTime.ts +45 -0
  98. package/src/contentCensus.ts +106 -0
  99. package/src/index.ts +58 -0
  100. package/src/mountGatedApp.ts +240 -0
  101. package/src/runtimeMode.ts +37 -0
  102. package/src/secureRequest.ts +25 -0
  103. package/src/sso.ts +767 -0
  104. package/src/ssoAutoSignIn.ts +544 -0
  105. package/src/ssoConsumer.server.ts +1260 -0
  106. package/src/stageIdentity.ts +76 -0
  107. package/src/ui/popover.ts +390 -0
  108. package/src/userSessions.ts +678 -0
@@ -0,0 +1,272 @@
1
+ /**
2
+ * Automatic SSO sign-in — the private satellites stop asking for a click they
3
+ * already know the answer to (2026-08-01, owner ask).
4
+ *
5
+ * ── What it changes ─────────────────────────────────────────────────────────
6
+ * Every private satellite (roms, hobbies, notes, vault, orch, orch-companion,
7
+ * station) drew the same screen when signed out: one sentence and one "Sign in
8
+ * with your cursedalchemy account" button, whose only effect is a navigation to
9
+ * `/api/auth/sso/start`. For someone who already holds an auth session — the
10
+ * normal case, since the whole fleet shares ONE user set — that screen is a
11
+ * speed bump in front of a redirect that was always going to succeed. The
12
+ * button now presses itself; the screen is what you see when it CAN'T.
13
+ *
14
+ * ── Why the guards are the whole file ───────────────────────────────────────
15
+ * An unconditional "anonymous → navigate to auth" is a redirect LOOP generator,
16
+ * and the loops it makes are the invisible kind: the browser bounces between
17
+ * two origins with no error anywhere, forever. Four situations must suppress
18
+ * it, and each is a real failure that has already happened somewhere in this
19
+ * fleet:
20
+ *
21
+ * 1. **This page IS the failure landing.** The consumer's callback redirects
22
+ * to `/?ssoError=…` (expired grant, replay, a non-admin account at an
23
+ * admin-only app). Auto-starting there would send the person straight back
24
+ * to auth, which would hand out another grant the app refuses for the same
25
+ * reason, forever — and they would never read why.
26
+ * 2. **The session did not stick.** The round trip appears to succeed and the
27
+ * probe still says anonymous — a rejected cookie (SameSite, a clock, a
28
+ * misconfigured `publicUrl`). Nothing in the URL says so, which is exactly
29
+ * why the ATTEMPT is remembered: a second anonymous load inside the
30
+ * cooldown means the loop is already running, and we stop and show the
31
+ * button instead.
32
+ * 3. **They just signed out.** Auth's own session outlives this app's cookie,
33
+ * so an auto-start after "Sign out" signs you straight back in. The button
34
+ * is then the only way to leave. `markSsoSignedOut()` is the flag, and it
35
+ * lasts for the tab.
36
+ * 4. **This door is not an SSO door.** The local vault daemon
37
+ * (`createLocalOwnerAuth`) answers `/api/auth/session` with
38
+ * `accountsUrl: ""` on purpose, and a dev open loop answers 404. Sending
39
+ * either to `auth.cursedalchemy.com` — on the box that sleeps 12am–10am CT
40
+ * — would break the instances whose whole point is working offline. So the
41
+ * trigger is a NON-EMPTY `accountsUrl`: the server says where its door is,
42
+ * and no client has to guess.
43
+ *
44
+ * The state lives in `sessionStorage`: per tab, gone when the tab closes, and
45
+ * never a reason to refuse a sign-in tomorrow. Every access is wrapped —
46
+ * Safari's private mode throws on `sessionStorage` access, and an app that
47
+ * cannot store a guard should still be openable (it degrades to the button,
48
+ * never to a loop).
49
+ */
50
+ export declare const SSO_START_PATH = "/api/auth/sso/start";
51
+ /**
52
+ * The GLOBAL sign-out door (2026-08-10). Ending this app's cookie was never a
53
+ * sign-out — auth's own session outlives it, so the next press of "Sign in"
54
+ * hands the browser straight back to the SAME person. That is not a cosmetic
55
+ * gap: it is why handing the laptop to somebody else did not work, because
56
+ * there was no way for them to become the signed-in user. This path revokes
57
+ * this app's session and then bounces through auth to revoke ITS session too,
58
+ * so "signed out" means what it says on every satellite at once.
59
+ */
60
+ export declare const SSO_SIGNOUT_PATH = "/api/auth/sso/signout";
61
+ /** When the last automatic attempt was launched, ms epoch, as a string. */
62
+ export declare const SSO_ATTEMPT_KEY = "satellite.sso.autoAttempt.v1";
63
+ /** Present when the person signed out in this tab. Value is unused. */
64
+ export declare const SSO_SIGNED_OUT_KEY = "satellite.sso.signedOut.v1";
65
+ /**
66
+ * How long one failed attempt suppresses the next.
67
+ *
68
+ * It is a ceiling on the round trip, not a guess at it: the hop is two 302s
69
+ * and a page load, so anything still anonymous 30 seconds later did not fail
70
+ * slowly, it failed silently. Long enough that a slow phone on 3G is never
71
+ * caught, short enough that the person who fixes the cause (signs in at auth
72
+ * in another tab, gets the admin flag) is not left staring at a button.
73
+ */
74
+ export declare const SSO_ATTEMPT_COOLDOWN_MS = 30000;
75
+ /** Why automatic sign-in did not fire. Every value is a screen the person
76
+ * should see, not an error — hence a reason rather than a boolean. */
77
+ export type SsoAutoSkipReason = "authenticated" | "not-an-sso-door" | "sign-in-failed" | "signed-out" | "recent-attempt" | "disabled";
78
+ export type SsoAutoDecision = {
79
+ start: true;
80
+ } | {
81
+ start: false;
82
+ reason: SsoAutoSkipReason;
83
+ };
84
+ export interface SsoAutoInput {
85
+ /** What `/api/auth/session` said. */
86
+ authenticated: boolean;
87
+ /** The accounts origin the SERVER advertises. Empty/absent → not an SSO door. */
88
+ accountsUrl?: string | null;
89
+ /** `?ssoError=` on the current URL, if any. */
90
+ ssoError?: string | null;
91
+ /** Did this tab sign out? (`SSO_SIGNED_OUT_KEY`) */
92
+ signedOut: boolean;
93
+ /** When the last automatic attempt started, ms epoch, or null. */
94
+ lastAttemptAt: number | null;
95
+ now: number;
96
+ /** Off switch for a caller that wants the button back. Defaults to on. */
97
+ enabled?: boolean;
98
+ cooldownMs?: number;
99
+ }
100
+ /**
101
+ * The whole policy, as a pure function — so the guards are testable without a
102
+ * browser, a redirect, or the ability to observe a loop only by hanging.
103
+ */
104
+ export declare function decideSsoAutoSignIn(input: SsoAutoInput): SsoAutoDecision;
105
+ /** The last automatic attempt's timestamp, or null if there wasn't one (or the
106
+ * stored value is not a number — a hand-edited or half-written key must read
107
+ * as "no attempt", which fails toward trying rather than toward stuck). */
108
+ export declare function lastSsoAttemptAt(): number | null;
109
+ export declare function ssoSignedOutHere(): boolean;
110
+ /**
111
+ * Call from every sign-out path. Auth's session outlives this app's cookie, so
112
+ * without this the next render signs the person straight back in and "Sign
113
+ * out" is a button that does nothing visible.
114
+ */
115
+ export declare function markSsoSignedOut(): void;
116
+ /** Clear both markers — what a confirmed session means. */
117
+ export declare function clearSsoAutoState(): void;
118
+ /** `?ssoError=` on the current URL, defensively (a malformed search string
119
+ * must not take the app down on its first render). */
120
+ export declare function ssoErrorFromLocation(search?: string): string | null;
121
+ export declare function ssoErrorForThisLoad(): string | null;
122
+ /** Forget the captured value. A page load is the real scope, so ONLY a test needs this —
123
+ * a suite that exercises several landings inside one process. */
124
+ export declare function resetSsoErrorCapture(): void;
125
+ /**
126
+ * Take `?ssoError=` off the URL, once, without touching anything else on it.
127
+ *
128
+ * 🔴 `replaceState`, never a reload or a hash change: this runs on a page that is
129
+ * already rendered and may be several routes deep, and either alternative would
130
+ * throw that away. Returns the message it removed (or null), so the ONE caller
131
+ * that consumed it is the one that reports it — a helper that both cleaned the
132
+ * URL and swallowed the message would make a failed sign-in silent, which is the
133
+ * exact bug this exists to fix.
134
+ */
135
+ export declare function takeSsoError(): string | null;
136
+ /**
137
+ * Report a refused sign-in ONCE, then take it off the URL (2026-08-15).
138
+ *
139
+ * The owner, switching accounts from `family`: *"I am auto directed back to
140
+ * family site as the user I was already. I see no indication that it did not
141
+ * work except the URL showing a query string with an ssoError field … there
142
+ * should be an indicator such as a toast popup tells me the action failed in a
143
+ * user friendly way so I quickly know what went wrong, but it seems weird the
144
+ * url is going to keep saying I do not have access while I click around the app
145
+ * clearly having access."*
146
+ *
147
+ * Both halves of that are one bug: the failure landing is the ordinary app page
148
+ * for whoever was ALREADY signed in, so nothing on it was ever going to mention
149
+ * a hop that failed for somebody else — and the parameter then rode along on
150
+ * every link they clicked, standing as a permanent claim that they cannot use
151
+ * the app they are using.
152
+ *
153
+ * 🔴 It lives here rather than in an app because every private satellite lands
154
+ * the same refusal, and `decideSsoAutoSignIn` ALREADY reads this parameter to
155
+ * decide not to bounce (which is why the app stays usable at all). One reader
156
+ * that acts on it and one that silently leaves it on the URL is how a message
157
+ * meant for a person became a permanent query string.
158
+ *
159
+ * @param onMessage what to show — a toast, an alert bar, whatever the app has.
160
+ */
161
+ export declare function useSsoErrorNotice(onMessage: (message: string) => void): void;
162
+ export interface StartSsoSignInOptions {
163
+ /** Defaults to `SSO_START_PATH`. */
164
+ startPath?: string;
165
+ /** Was this the machine's decision (record the attempt) or the person's
166
+ * (they asked, so clear the signed-out flag and let them through)? */
167
+ automatic?: boolean;
168
+ /**
169
+ * "Somebody ELSE wants in." Carries `switch=1` to this app's start route,
170
+ * which forwards `prompt=login` to auth — so the credential form is shown
171
+ * even though auth still holds a live session, instead of the hop silently
172
+ * re-issuing a grant for whoever is already signed in. Never combined with
173
+ * `automatic`: an automatic hop must never demand a password.
174
+ */
175
+ switchUser?: boolean;
176
+ /**
177
+ * "Somebody else wants in TOO." Carries `add=1`, which forwards
178
+ * `prompt=select_account` to auth and lands the result in a FREE account
179
+ * slot — so whoever is already signed in here keeps working, in their own
180
+ * tab (2026-08-12).
181
+ *
182
+ * The difference from `switchUser` is the whole multi-account feature:
183
+ * switching REPLACES this tab's account, adding does not. Never combined
184
+ * with `automatic`, for the same reason `switchUser` is not.
185
+ */
186
+ addAccount?: boolean;
187
+ /**
188
+ * A specific account id to sign in as, skipping the chooser. Only ever
189
+ * honoured by auth when this browser already holds a live session for that
190
+ * account — see `sessionUserAt` — so it can never be a way in, only a way
191
+ * to avoid retyping a password.
192
+ */
193
+ account?: string;
194
+ now?: () => number;
195
+ navigate?: (url: string) => void;
196
+ }
197
+ /**
198
+ * Begin the redirect chain. Used by BOTH doors — the automatic one and the
199
+ * button — so the attempt is recorded exactly once either way, the deep-link
200
+ * return path is carried the same way from both, and the two can never drift
201
+ * into different behavior.
202
+ */
203
+ export declare function startSsoSignIn(options?: StartSsoSignInOptions): void;
204
+ export interface StartSsoSignOutOptions {
205
+ /** Defaults to `SSO_SIGNOUT_PATH`. */
206
+ signOutPath?: string;
207
+ /**
208
+ * Leave EVERY account on this machine, not just this tab's (2026-08-12).
209
+ *
210
+ * 🔴 Off by default, and that default is the important half. With several
211
+ * accounts in one browser, a sign-out that ended all of them would sign the
212
+ * owner out of every other tab and every other app because a test account
213
+ * left one page — work lost in a window nobody touched. This is the
214
+ * shared-computer exit, asked for by name.
215
+ */
216
+ allAccounts?: boolean;
217
+ navigate?: (url: string) => void;
218
+ }
219
+ /**
220
+ * Leave — for real, on this app AND at auth.
221
+ *
222
+ * The signed-out marker is written FIRST and for the same reason it always
223
+ * was: the landing page after the round trip is this app's index, signed out,
224
+ * and without the flag `useSsoAutoSignIn` would immediately start another hop.
225
+ * That hop would now correctly stop at auth's login form rather than loop, but
226
+ * bouncing the person to another origin the instant they signed out is not what
227
+ * pressing "Sign out" should look like.
228
+ *
229
+ * A full-page navigation, not a fetch: the browser itself has to carry cookies
230
+ * to two origins and follow the 302 chain between them.
231
+ */
232
+ export declare function startSsoSignOut(options?: StartSsoSignOutOptions): void;
233
+ /**
234
+ * Structural type for a Playwright `Page`/`BrowserContext`. Declared rather
235
+ * than imported so this package keeps no dependency on a test runner — the
236
+ * helper below is used BY the browser smokes, not by the apps.
237
+ */
238
+ export interface SsoInitScriptTarget {
239
+ addInitScript(script: (key: string) => void, arg: string): Promise<unknown>;
240
+ }
241
+ /**
242
+ * Seed the signed-out marker before any page script runs, so the app renders
243
+ * its sign-in card instead of hopping to accounts.
244
+ *
245
+ * Every satellite's browser smoke asserts that the signed-out surface renders,
246
+ * is styled, and carries the theme toggle — real gates that have caught a
247
+ * missing stylesheet and a blank root. Automatic sign-in does not delete that
248
+ * surface, it makes it a SECOND-visit screen (after a sign-out, a failed
249
+ * callback, or a hop that did not stick), so the smoke has to ask for it
250
+ * rather than assume it. This is the honest way to ask: it puts the browser in
251
+ * the exact state a real sign-out leaves it in, with nothing test-only in the
252
+ * app.
253
+ */
254
+ export declare function suppressSsoAutoSignIn(target: SsoInitScriptTarget): Promise<void>;
255
+ export interface UseSsoAutoSignInInput {
256
+ /** What the session probe says. `undefined` means it has not answered yet —
257
+ * the hook does nothing until it has, so a loading render never redirects. */
258
+ authenticated: boolean | undefined;
259
+ /** The accounts origin the server advertises (`SsoSessionInfo.accountsUrl`). */
260
+ accountsUrl?: string | null;
261
+ /** Off switch. Defaults to on. */
262
+ enabled?: boolean;
263
+ /** Defaults to `SSO_START_PATH`. */
264
+ startPath?: string;
265
+ }
266
+ /**
267
+ * Returns `true` while the page is on its way to the accounts satellite. A
268
+ * caller renders its LOADING view for that — never the sign-in screen, which is
269
+ * the flash this whole feature exists to delete.
270
+ */
271
+ export declare function useSsoAutoSignIn(input: UseSsoAutoSignInInput): boolean;
272
+ //# sourceMappingURL=ssoAutoSignIn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ssoAutoSignIn.d.ts","sourceRoot":"","sources":["../src/ssoAutoSignIn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AASH,eAAO,MAAM,cAAc,wBAAwB,CAAC;AACpD;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,0BAA0B,CAAC;AAExD,2EAA2E;AAC3E,eAAO,MAAM,eAAe,iCAAiC,CAAC;AAC9D,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,+BAA+B,CAAC;AAE/D;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,QAAS,CAAC;AAE9C;uEACuE;AACvE,MAAM,MAAM,iBAAiB,GAC1B,eAAe,GACf,iBAAiB,GACjB,gBAAgB,GAChB,YAAY,G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