@molecule/app-auth 3.0.2 → 3.2.1

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.
package/dist/types.d.ts CHANGED
@@ -208,8 +208,8 @@ export type RegisterExtraShape<T> = {
208
208
  * that type whole:
209
209
  *
210
210
  * ```typescript
211
- * interface RealWorldRegister { username: string }
212
- * const client = createJWTAuthClient<UserProfile, RealWorldRegister>({ … })
211
+ * interface RegistrationFields { username: string }
212
+ * const client = createJWTAuthClient<UserProfile, RegistrationFields>({ … })
213
213
  * ```
214
214
  *
215
215
  * A custom field may not change a built-in field's type: `email` and
@@ -264,6 +264,15 @@ export interface AuthResult<T = UserProfile> {
264
264
  */
265
265
  twoFactorRequired?: boolean;
266
266
  }
267
+ /** A 206 challenge: control fields survive, but no authenticated session exists. */
268
+ export interface AuthChallenge {
269
+ twoFactorRequired: true;
270
+ user?: never;
271
+ accessToken?: never;
272
+ refreshToken?: never;
273
+ expiresAt?: never;
274
+ [controlField: string]: unknown;
275
+ }
267
276
  /**
268
277
  * Password reset request data.
269
278
  */
@@ -291,15 +300,21 @@ export interface PasswordResetConfirm {
291
300
  * UI needs, derived from {@link AuthState} so no caller has to combine
292
301
  * `initialized`/`authenticated`/`loading`/`error` itself.
293
302
  *
303
+ * `status === 'loading'` is undecided: wait for it and redirect only on
304
+ * `status === 'unauthenticated'`. `'unavailable'` keeps the session candidate
305
+ * for retry; its profile can still be null. A restore failure other than
306
+ * 401/403 never signs out.
307
+ *
294
308
  * - `'loading'`: no decision yet (before `initialize()` settles). An auth
295
309
  * operation in flight is {@link AuthState.loading} and KEEPS the decided
296
310
  * status, so a page guarded on `'loading'` stays mounted while a Login or
297
311
  * Register request runs.
298
312
  * - `'authenticated'`: a session exists.
299
313
  * - `'unauthenticated'`: the client settled the question and nobody is signed in.
300
- * - `'unavailable'`: a stored session exists but the server could not confirm it
301
- * (a network or 5xx failure in {@link AuthClient.validateSession}); the session
302
- * is KEPT and the app can say "reconnecting" instead of signing the user out.
314
+ * - `'unavailable'`: a stored token or cookie-session candidate exists but the
315
+ * server could not confirm it (for example a network, 404, or 5xx failure);
316
+ * the candidate is KEPT and the app can say "reconnecting" instead of signing
317
+ * the user out.
303
318
  */
304
319
  export type AuthStatus = 'loading' | 'authenticated' | 'unauthenticated' | 'unavailable';
305
320
  /**
@@ -308,7 +323,10 @@ export type AuthStatus = 'loading' | 'authenticated' | 'unauthenticated' | 'unav
308
323
  export interface AuthState<T = UserProfile> {
309
324
  /**
310
325
  * The session's state as one value — render from this instead of combining
311
- * `initialized`/`authenticated`/`loading`. See {@link AuthStatus}.
326
+ * `initialized`/`authenticated`/`loading`. `'loading'` is undecided, so wait
327
+ * and redirect only on `'unauthenticated'`; `'unavailable'` keeps the candidate
328
+ * for retry and can have a null profile. A restore failure other than 401/403
329
+ * never signs out. See {@link AuthStatus}.
312
330
  */
313
331
  status: AuthStatus;
314
332
  /**
@@ -316,11 +334,14 @@ export interface AuthState<T = UserProfile> {
316
334
  */
317
335
  initialized: boolean;
318
336
  /**
319
- * Whether the user is authenticated.
337
+ * Whether the client has an authenticated session. This is not a server
338
+ * confirmation flag: during `'unavailable'` it can be false for a retained
339
+ * token/cookie-only candidate with no cached profile. Use `status` for redirects.
320
340
  */
321
341
  authenticated: boolean;
322
342
  /**
323
- * Current user (if authenticated).
343
+ * Current user, or null when none is cached. In particular, an `'unavailable'`
344
+ * token/cookie-only restore has a retained candidate but no profile yet.
324
345
  */
325
346
  user: T | null;
326
347
  /**
@@ -397,6 +418,9 @@ export type AuthEventListener<T = UserProfile> = (event: AuthEvent<T>) => void;
397
418
  * map, a field map with arrays, or a top-level array of messages — without
398
419
  * re-implementing the login call. A body that is not JSON (an HTML error
399
420
  * page, an empty body) arrives as `{}`.
421
+ * - `response`: the same failed-response view as `@molecule/app-http`, with
422
+ * `response.data === body`, so `isHttpError` and `response.data` readers work
423
+ * on this rejection too.
400
424
  *
401
425
  * ```typescript
402
426
  * import { I18nError } from '@molecule/app-i18n'
@@ -420,6 +444,26 @@ export interface AuthError extends I18nError {
420
444
  * maps and arrays included. `{}` when the body is not JSON.
421
445
  */
422
446
  body: unknown;
447
+ /** The app-http-compatible view of the failed response. */
448
+ response: {
449
+ /** The same parsed value as {@link AuthError.body}. */
450
+ data: unknown;
451
+ /** The same HTTP status as {@link AuthError.status}. */
452
+ status: number;
453
+ /** HTTP status text supplied by the server or fetch implementation. */
454
+ statusText: string;
455
+ /** Response headers as a plain object, with credential headers omitted. */
456
+ headers: Record<string, string>;
457
+ /** Method and credential-redacted URL only; request bodies and headers are never retained. */
458
+ config: {
459
+ method: string;
460
+ url: string;
461
+ };
462
+ };
463
+ /** The same translation key as {@link I18nError.i18nKey}. */
464
+ errorKey: string;
465
+ /** A server response was received, so a non-ok response is never an abort. */
466
+ aborted: false;
423
467
  }
424
468
  /**
425
469
  * A complete session an exchange outside the client has already established — an OAuth
@@ -478,12 +522,23 @@ export interface AuthClient<T = UserProfile, TRegister extends RegisterExtraShap
478
522
  * Updates the cached user object (state + persistent storage) without
479
523
  * hitting the network. Intended for local refreshes after a per-app
480
524
  * mutation (e.g., the user just PATCHed their own profile and the
481
- * server returned the canonical row). Does NOT change tokens.
525
+ * server returned the canonical row). A non-null profile does NOT change
526
+ * tokens or sign the client in: `authenticated` and `status` are unchanged,
527
+ * so an anonymous client stays anonymous. Use {@link login} /
528
+ * {@link register} for a credential exchange, or {@link setSession} when
529
+ * the token was issued outside the client.
482
530
  *
483
- * This does not sign the client in: `authenticated` and `status` are
484
- * unchanged, so an anonymous client stays anonymous. Use
485
- * {@link login} / {@link register} for a credential exchange, or
486
- * {@link setSession} when the token was issued outside the client.
531
+ * Passing `null` on a signed-in client, or while any session operation is
532
+ * pending, ends the local session: it clears the access token, refresh token
533
+ * and cached user, stops automatic refresh, and settles `authenticated: false`
534
+ * with `status: 'unauthenticated'` in one notification. Every older operation
535
+ * loses session ownership, and a persistent sign-out marker prevents a reload
536
+ * from restoring its credentials or a late cookie. A late credential exchange
537
+ * is revoked best-effort when a logout endpoint is configured, without blocking
538
+ * the caller. This method does not otherwise call the server for a settled
539
+ * session; use {@link logout} for explicit server revocation. On a settled
540
+ * anonymous client, `null` only clears the cached profile and leaves tokens
541
+ * and auth state unchanged.
487
542
  */
488
543
  setUser(user: T | null): void;
489
544
  /**
@@ -498,10 +553,13 @@ export interface AuthClient<T = UserProfile, TRegister extends RegisterExtraShap
498
553
  * which would violate the storage contract and make a stored bearer token
499
554
  * JS-readable (XSS-exfiltratable). Pass `null` to clear it.
500
555
  *
501
- * This changes token storage only; it does not sign the client in
502
- * (`authenticated` and `status` are unchanged). Use {@link login} /
503
- * {@link register} for a credential exchange, or call {@link setSession}
504
- * with the token and the user to establish an already-issued session.
556
+ * This changes token storage only: passing `null` does not by itself sign a
557
+ * signed-in client out, and a non-null token does not sign an anonymous
558
+ * client in (`authenticated` and `status` are unchanged). Use {@link logout}
559
+ * to end a session, or {@link setUser} with `null` for local-only sign-out.
560
+ * Use {@link login} / {@link register} for a credential exchange, or call
561
+ * {@link setSession} with the token and user to establish an already-issued
562
+ * session.
505
563
  */
506
564
  setAccessToken(token: string | null): void;
507
565
  /**
@@ -526,7 +584,16 @@ export interface AuthClient<T = UserProfile, TRegister extends RegisterExtraShap
526
584
  */
527
585
  login(credentials: LoginCredentials): Promise<AuthResult<T>>;
528
586
  /**
529
- * Logs out the current user.
587
+ * Logs out the current user. The server request is best-effort: a missing
588
+ * logout route (404), any other HTTP failure, or a network error never makes
589
+ * this method reject. It always clears the access token, refresh token and
590
+ * cached user, stops automatic refresh, and publishes one settled
591
+ * `authenticated: false`, `status: 'unauthenticated'` transition. Every pending
592
+ * session operation loses ownership; a persistent marker prevents reload from
593
+ * restoring an older session, and late credentials are revoked best-effort.
594
+ *
595
+ * When the API has no logout route, set {@link AuthClientConfigOptions.logoutEndpoint}
596
+ * to `null` (or `''`) to skip the request. Local sign-out still happens.
530
597
  */
531
598
  logout(): Promise<void>;
532
599
  /**
@@ -744,9 +811,11 @@ export interface AuthClientConfigOptions<T extends object = UserProfile> {
744
811
  */
745
812
  loginEndpoint?: string;
746
813
  /**
747
- * Logout endpoint.
814
+ * Logout endpoint. Defaults to `/users/logout`. Set to `null` (or `''`) when
815
+ * the API has no logout route: {@link AuthClient.logout} skips the request
816
+ * and still clears the local session.
748
817
  */
749
- logoutEndpoint?: string;
818
+ logoutEndpoint?: string | null;
750
819
  /**
751
820
  * Register endpoint.
752
821
  */
@@ -782,6 +851,20 @@ export interface AuthClientConfigOptions<T extends object = UserProfile> {
782
851
  * unconfirmed.
783
852
  */
784
853
  currentUserEndpoint?: string;
854
+ /**
855
+ * When to probe {@link currentUserEndpoint} for an HttpOnly cookie session.
856
+ * The default `'hint'` probes only when the readable `mol_auth=1` cookie is
857
+ * present or this client already holds a cookie-session candidate. The API
858
+ * must set that presence hint alongside its HttpOnly cookie for automatic
859
+ * restoration after a full page load.
860
+ *
861
+ * Choose `'always'` for an external cookie API without that hint. Pair it with
862
+ * `storage: 'memory'` and the API's current-user endpoint; the request includes
863
+ * credentials. An anonymous load then makes a probe too. A local sign-out
864
+ * suppresses probes until a successful sign-in establishes another session.
865
+ * Network/5xx/404 failures leave a retryable candidate; 401/403 ends it.
866
+ */
867
+ cookieRestore?: 'hint' | 'always';
785
868
  /**
786
869
  * Storage key prefix.
787
870
  */
@@ -791,7 +874,7 @@ export interface AuthClientConfigOptions<T extends object = UserProfile> {
791
874
  * `${storagePrefix}accessToken`).
792
875
  *
793
876
  * Set it when something outside this package reads the token at its own key —
794
- * an e2e suite's contract (RealWorld's specs read `localStorage.jwtToken`), a
877
+ * an e2e suite's contract (for example, `localStorage.getItem('app.jwt')`), a
795
878
  * second library, a host page — instead of mirroring the token into
796
879
  * `localStorage` beside the client. The refresh token and the cached user keep
797
880
  * the prefix.
@@ -816,8 +899,8 @@ export interface AuthClientConfigOptions<T extends object = UserProfile> {
816
899
  * through `createJWTAuthClient<UserProfile, { username: string }>` — so the
817
900
  * body can be sent as-is under the envelope the API wants.
818
901
  *
819
- * RealWorld, for example, nests the payload under `user` and registers with
820
- * `{ user: { username, email, password } }`:
902
+ * A nested-account API, for example, nests the payload under `user` and registers
903
+ * with `{ user: { username, email, password } }`:
821
904
  *
822
905
  * ```typescript
823
906
  * const client = createJWTAuthClient<UserProfile, { username: string }>({
@@ -839,7 +922,7 @@ export interface AuthClientConfigOptions<T extends object = UserProfile> {
839
922
  /**
840
923
  * Turn an answer that carries a user into the client's
841
924
  * `{ accessToken, refreshToken?, user }` (default: the answer as given).
842
- * RealWorld, for example — keep the wire bearer OUT of the profile, because
925
+ * For a nested user answer, keep the wire bearer OUT of the profile, because
843
926
  * the client caches `user` in Web Storage where a token copy is readable by
844
927
  * any script on the origin:
845
928
  *
@@ -875,7 +958,7 @@ export interface AuthClientConfigOptions<T extends object = UserProfile> {
875
958
  * @param data - The parsed response body.
876
959
  * @returns The auth result.
877
960
  */
878
- mapAuthResponse?: (data: unknown) => AuthResult<NoInfer<T>>;
961
+ mapAuthResponse?: (data: unknown) => AuthResult<NoInfer<T>> | AuthChallenge;
879
962
  /**
880
963
  * Where the access/refresh token and the cached user are kept — the field that
881
964
  * decides whether a page reload keeps the user signed in.
@@ -885,12 +968,14 @@ export interface AuthClientConfigOptions<T extends object = UserProfile> {
885
968
  * (SSR, a Node test) the default is `'memory'`. Pass `'memory'` EXPLICITLY when
886
969
  * the API sets an httpOnly session cookie and you do not want a script-readable
887
970
  * copy: `'memory'` is a process-local store, and `initialize()` then restores
888
- * through {@link AuthClientConfig.currentUserEndpoint} — the strongest
971
+ * through {@link AuthClientConfig.currentUserEndpoint}. The default
972
+ * {@link AuthClientConfig.cookieRestore} policy requires the readable
973
+ * `mol_auth=1` hint; choose `'always'` for an API without it. This is the strongest
889
974
  * configuration, because no script can read the cookie.
890
975
  *
891
976
  * **An app whose external contract requires the token at a specific key** — a
892
- * supplied e2e suite (the RealWorld specs read `localStorage.jwtToken` in
893
- * `SELECTORS.md`), a host page, a second library — sets `tokenKey: 'jwtToken'`;
977
+ * supplied e2e suite (for example, one that reads `localStorage.getItem('app.jwt')`),
978
+ * a host page, a second library — sets `tokenKey: 'app.jwt'`;
894
979
  * in a browser that is enough, because the default store is Web Storage. The
895
980
  * session (token AND user) is then restored synchronously in `initialize()` —
896
981
  * with no store of your own. `tokenKey` places the access token at that exact
@@ -915,11 +1000,13 @@ export interface AuthClientConfigOptions<T extends object = UserProfile> {
915
1000
  * // A suite/host page reads the token at its own key (the browser default
916
1001
  * // already stores it; `storage` is shown for an explicit choice):
917
1002
  * storage: createBrowserStorageAdapter()
918
- * tokenKey: 'jwtToken'
1003
+ * tokenKey: 'app.jwt'
919
1004
  * // Only this tab's lifetime, at a narrower exposure than localStorage:
920
1005
  * storage: createBrowserStorageAdapter({ kind: 'session' })
921
1006
  * // An httpOnly cookie session — keep the bearer out of script-reachable storage:
922
1007
  * storage: 'memory'
1008
+ * // An external cookie API without a readable mol_auth=1 presence hint:
1009
+ * cookieRestore: 'always'
923
1010
  * ```
924
1011
  */
925
1012
  storage?: 'memory' | StorageAdapter;
@@ -958,9 +1045,12 @@ export interface AuthClientConfigOptions<T extends object = UserProfile> {
958
1045
  */
959
1046
  resetPasswordEndpoint?: string;
960
1047
  /**
961
- * Change password endpoint.
1048
+ * Change password endpoint. A resource route may resolve the CURRENT signed-in
1049
+ * user, using the same identity rule as {@link AuthClientConfigOptions.profileEndpoint}.
962
1050
  */
963
- changePasswordEndpoint?: string;
1051
+ changePasswordEndpoint?: string | ((user: Readonly<T>) => string);
1052
+ /** HTTP method for `changePassword()` (default `'POST'`). */
1053
+ changePasswordMethod?: 'POST' | 'PATCH';
964
1054
  /**
965
1055
  * Available OAuth providers (e.g., ['github', 'google', 'gitlab']).
966
1056
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAEnD;;G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;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAE/B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAE9B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAA;IAEjE,6DAA6D;IAC7D,oBAAoB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAEvC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IAEzB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,cAAc,IAAI,MAAM,GAAG,IAAI,CAAA;IAC/B,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC1C,eAAe,IAAI,MAAM,GAAG,IAAI,CAAA;IAChC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3C,OAAO,CAAC,CAAC,GAAG,WAAW,KAAK,CAAC,GAAG,IAAI,CAAA;IACpC,OAAO,CAAC,CAAC,GAAG,WAAW,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI,CAAA;IAC9C,KAAK,IAAI,IAAI,CAAA;CACd"}
@@ -52,7 +52,7 @@ export declare const logout: () => Promise<void>;
52
52
  * second one (`register<{ username: string }, SessionUser>(data)`).
53
53
  *
54
54
  * @template TExtra - The app's own registration fields, at the top level
55
- * (`{ username: string }` for a RealWorld-shaped API); defaults to none.
55
+ * (`{ username: string }` for an account API); defaults to none.
56
56
  * @template T - The user profile the bonded client returns. Pass the app's own
57
57
  * profile when the client was created with one; defaults to
58
58
  * {@link UserProfile}.
package/dist/utilities.js CHANGED
@@ -52,7 +52,7 @@ export const logout = () => getClient().logout();
52
52
  * second one (`register<{ username: string }, SessionUser>(data)`).
53
53
  *
54
54
  * @template TExtra - The app's own registration fields, at the top level
55
- * (`{ username: string }` for a RealWorld-shaped API); defaults to none.
55
+ * (`{ username: string }` for an account API); defaults to none.
56
56
  * @template T - The user profile the bonded client returns. Pass the app's own
57
57
  * profile when the client was created with one; defaults to
58
58
  * {@link UserProfile}.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-auth",
3
- "version": "3.0.2",
3
+ "version": "3.2.1",
4
4
  "description": "Client-side authentication interface for molecule.dev",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,13 +29,15 @@
29
29
  "license": "Apache-2.0",
30
30
  "peerDependencies": {
31
31
  "@molecule/app-bond": "^1.0.1",
32
+ "@molecule/app-http": "^1.5.2",
32
33
  "@molecule/app-i18n": "^1.0.1",
33
- "@molecule/app-logger": "^1.0.1"
34
+ "@molecule/app-logger": "^1.0.4"
34
35
  },
35
36
  "devDependencies": {
36
- "@molecule/app-bond": "1.0.4",
37
- "@molecule/app-i18n": "1.1.1",
38
- "@molecule/app-logger": "1.0.3",
37
+ "@molecule/app-bond": "1.0.5",
38
+ "@molecule/app-http": "1.5.3",
39
+ "@molecule/app-i18n": "1.1.2",
40
+ "@molecule/app-logger": "1.0.5",
39
41
  "@types/node": "26.6.5",
40
42
  "typescript": "6.0.3",
41
43
  "vitest": "4.1.12"