@bagelink/auth 1.21.40 → 1.21.42

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.
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Keeps post-login navigation and logged-out 401s quiet during SSO callback.
3
- * Callback, login-token, and MFA screens own their own redirect (often
4
- * `location.replace`). A LOGIN → `router.push` race mounts the app shell early.
3
+ * Callback, login, login-token, and MFA screens own their own redirect (often
4
+ * `location.replace` or `router.push`). A LOGIN → `router.push` race mounts the
5
+ * app shell early.
5
6
  */
6
7
  /** Route names that perform their own post-login navigation. */
7
8
  export declare const POST_LOGIN_OWNER_ROUTES: Set<string>;
package/dist/index.cjs CHANGED
@@ -464,6 +464,7 @@ const POST_LOGIN_OWNER_ROUTES = /* @__PURE__ */ new Set([
464
464
  "AuthCallback",
465
465
  "Callback",
466
466
  // legacy route name in some apps
467
+ "auth-login",
467
468
  "auth-login-token",
468
469
  "auth-mfa"
469
470
  ]);
package/dist/index.mjs CHANGED
@@ -462,6 +462,7 @@ const POST_LOGIN_OWNER_ROUTES = /* @__PURE__ */ new Set([
462
462
  "AuthCallback",
463
463
  "Callback",
464
464
  // legacy route name in some apps
465
+ "auth-login",
465
466
  "auth-login-token",
466
467
  "auth-mfa"
467
468
  ]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/auth",
3
3
  "type": "module",
4
- "version": "1.21.40",
4
+ "version": "1.21.42",
5
5
  "description": "Bagelink auth package",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -27,7 +27,7 @@ describe('SSO callback gate', () => {
27
27
  expect(shouldAutoRedirectAfterLogin('Callback')).toBe(false)
28
28
  expect(shouldAutoRedirectAfterLogin('auth-mfa')).toBe(false)
29
29
  expect(shouldAutoRedirectAfterLogin('auth-login-token')).toBe(false)
30
- expect(shouldAutoRedirectAfterLogin('auth-login')).toBe(true)
30
+ expect(shouldAutoRedirectAfterLogin('auth-login')).toBe(false)
31
31
  })
32
32
  })
33
33
 
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Keeps post-login navigation and logged-out 401s quiet during SSO callback.
3
- * Callback, login-token, and MFA screens own their own redirect (often
4
- * `location.replace`). A LOGIN → `router.push` race mounts the app shell early.
3
+ * Callback, login, login-token, and MFA screens own their own redirect (often
4
+ * `location.replace` or `router.push`). A LOGIN → `router.push` race mounts the
5
+ * app shell early.
5
6
  */
6
7
 
7
8
  /** Route names that perform their own post-login navigation. */
@@ -9,6 +10,7 @@ export const POST_LOGIN_OWNER_ROUTES = new Set([
9
10
  'auth-callback',
10
11
  'AuthCallback',
11
12
  'Callback', // legacy route name in some apps
13
+ 'auth-login',
12
14
  'auth-login-token',
13
15
  'auth-mfa',
14
16
  ])