@feelflow/ffid-sdk 5.21.0 → 5.22.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.
package/README.md CHANGED
@@ -185,6 +185,7 @@ function Header() {
185
185
  refreshInterval={300000} // オプション: セッション更新間隔(ms)
186
186
  onAuthStateChange={(user) => {}} // オプション: 認証状態変更時コールバック
187
187
  onError={(error) => {}} // オプション: エラー時コールバック
188
+ cleanCallbackUrl={true} // オプション: token モードの callback URL cleanup(false で consumer に委譲、v5.22.0+)
188
189
  >
189
190
  {children}
190
191
  </FFIDProvider>
@@ -1225,7 +1225,7 @@ function createNonContractMethods(deps) {
1225
1225
  }
1226
1226
 
1227
1227
  // src/client/version-check.ts
1228
- var SDK_VERSION = "5.21.0";
1228
+ var SDK_VERSION = "5.22.0";
1229
1229
  var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
1230
1230
  var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
1231
1231
  function sdkHeaders() {
@@ -3498,7 +3498,7 @@ async function handleRedirectCallback(client, options) {
3498
3498
  };
3499
3499
  }
3500
3500
  logger.error(
3501
- "handleRedirectCallback: OAuth state mismatch or omitted (possible CSRF) \u2014 \u8A8D\u8A3C\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F"
3501
+ "handleRedirectCallback: OAuth state mismatch or omitted (possible CSRF) \u2014 \u8A8D\u8A3C\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F\u3002\u6D88\u8CBB\u6E08\u307F callback \u30D1\u30E9\u30E1\u30FC\u30BF\u306E\u518D\u51E6\u7406\uFF08`cleanUrl: false` \u5229\u7528\u6642\u306E cleanup \u6F0F\u308C\u3084 reload \u7B49\uFF09\u3067\u3082\u767A\u751F\u3057\u307E\u3059"
3502
3502
  );
3503
3503
  return {
3504
3504
  error: client.createError(
@@ -3511,7 +3511,11 @@ async function handleRedirectCallback(client, options) {
3511
3511
  const verifier = retrieveCodeVerifier(logger);
3512
3512
  const result = await client.exchangeCodeForTokens(code, verifier ?? void 0);
3513
3513
  if (!result.error && hasWindow) {
3514
- cleanCallbackUrlParams(logger);
3514
+ if (options?.cleanUrl !== false) {
3515
+ cleanCallbackUrlParams(logger);
3516
+ } else {
3517
+ logger.debug("handleRedirectCallback: cleanUrl=false \u306E\u305F\u3081 URL cleanup \u3092 consumer \u306B\u59D4\u8B72\u3057\u307E\u3057\u305F");
3518
+ }
3515
3519
  }
3516
3520
  return result;
3517
3521
  }
@@ -3530,7 +3534,8 @@ function FFIDProvider({
3530
3534
  onAuthStateChange,
3531
3535
  onError,
3532
3536
  authMode,
3533
- clientId
3537
+ clientId,
3538
+ cleanCallbackUrl = true
3534
3539
  }) {
3535
3540
  const [user, setUser] = useState(null);
3536
3541
  const [organizations, setOrganizations] = useState([]);
@@ -3682,14 +3687,17 @@ function FFIDProvider({
3682
3687
  },
3683
3688
  [organizations, client]
3684
3689
  );
3690
+ const handledCodeRef = useRef(null);
3685
3691
  useEffect(() => {
3686
3692
  if (client.authMode !== "token") return;
3687
3693
  if (typeof window === "undefined") return;
3688
3694
  const urlParams = new URLSearchParams(window.location.search);
3689
3695
  const code = urlParams.get("code");
3690
3696
  if (!code) return;
3697
+ if (handledCodeRef.current === code) return;
3698
+ handledCodeRef.current = code;
3691
3699
  client.logger.debug("Authorization code detected, exchanging for tokens");
3692
- handleRedirectCallback(client).then((result) => {
3700
+ handleRedirectCallback(client, { cleanUrl: cleanCallbackUrl }).then((result) => {
3693
3701
  if (result.error) {
3694
3702
  client.logger.error("Token exchange failed:", result.error);
3695
3703
  setError(result.error);
@@ -1227,7 +1227,7 @@ function createNonContractMethods(deps) {
1227
1227
  }
1228
1228
 
1229
1229
  // src/client/version-check.ts
1230
- var SDK_VERSION = "5.21.0";
1230
+ var SDK_VERSION = "5.22.0";
1231
1231
  var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
1232
1232
  var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
1233
1233
  function sdkHeaders() {
@@ -3500,7 +3500,7 @@ async function handleRedirectCallback(client, options) {
3500
3500
  };
3501
3501
  }
3502
3502
  logger.error(
3503
- "handleRedirectCallback: OAuth state mismatch or omitted (possible CSRF) \u2014 \u8A8D\u8A3C\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F"
3503
+ "handleRedirectCallback: OAuth state mismatch or omitted (possible CSRF) \u2014 \u8A8D\u8A3C\u3092\u4E2D\u6B62\u3057\u307E\u3057\u305F\u3002\u6D88\u8CBB\u6E08\u307F callback \u30D1\u30E9\u30E1\u30FC\u30BF\u306E\u518D\u51E6\u7406\uFF08`cleanUrl: false` \u5229\u7528\u6642\u306E cleanup \u6F0F\u308C\u3084 reload \u7B49\uFF09\u3067\u3082\u767A\u751F\u3057\u307E\u3059"
3504
3504
  );
3505
3505
  return {
3506
3506
  error: client.createError(
@@ -3513,7 +3513,11 @@ async function handleRedirectCallback(client, options) {
3513
3513
  const verifier = retrieveCodeVerifier(logger);
3514
3514
  const result = await client.exchangeCodeForTokens(code, verifier ?? void 0);
3515
3515
  if (!result.error && hasWindow) {
3516
- cleanCallbackUrlParams(logger);
3516
+ if (options?.cleanUrl !== false) {
3517
+ cleanCallbackUrlParams(logger);
3518
+ } else {
3519
+ logger.debug("handleRedirectCallback: cleanUrl=false \u306E\u305F\u3081 URL cleanup \u3092 consumer \u306B\u59D4\u8B72\u3057\u307E\u3057\u305F");
3520
+ }
3517
3521
  }
3518
3522
  return result;
3519
3523
  }
@@ -3532,7 +3536,8 @@ function FFIDProvider({
3532
3536
  onAuthStateChange,
3533
3537
  onError,
3534
3538
  authMode,
3535
- clientId
3539
+ clientId,
3540
+ cleanCallbackUrl = true
3536
3541
  }) {
3537
3542
  const [user, setUser] = react.useState(null);
3538
3543
  const [organizations, setOrganizations] = react.useState([]);
@@ -3684,14 +3689,17 @@ function FFIDProvider({
3684
3689
  },
3685
3690
  [organizations, client]
3686
3691
  );
3692
+ const handledCodeRef = react.useRef(null);
3687
3693
  react.useEffect(() => {
3688
3694
  if (client.authMode !== "token") return;
3689
3695
  if (typeof window === "undefined") return;
3690
3696
  const urlParams = new URLSearchParams(window.location.search);
3691
3697
  const code = urlParams.get("code");
3692
3698
  if (!code) return;
3699
+ if (handledCodeRef.current === code) return;
3700
+ handledCodeRef.current = code;
3693
3701
  client.logger.debug("Authorization code detected, exchanging for tokens");
3694
- handleRedirectCallback(client).then((result) => {
3702
+ handleRedirectCallback(client, { cleanUrl: cleanCallbackUrl }).then((result) => {
3695
3703
  if (result.error) {
3696
3704
  client.logger.error("Token exchange failed:", result.error);
3697
3705
  setError(result.error);
@@ -1,34 +1,34 @@
1
1
  'use strict';
2
2
 
3
- var chunkRDQ4R3XC_cjs = require('../chunk-RDQ4R3XC.cjs');
3
+ var chunkEM5EGNGE_cjs = require('../chunk-EM5EGNGE.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "FFIDAnnouncementBadge", {
8
8
  enumerable: true,
9
- get: function () { return chunkRDQ4R3XC_cjs.FFIDAnnouncementBadge; }
9
+ get: function () { return chunkEM5EGNGE_cjs.FFIDAnnouncementBadge; }
10
10
  });
11
11
  Object.defineProperty(exports, "FFIDAnnouncementList", {
12
12
  enumerable: true,
13
- get: function () { return chunkRDQ4R3XC_cjs.FFIDAnnouncementList; }
13
+ get: function () { return chunkEM5EGNGE_cjs.FFIDAnnouncementList; }
14
14
  });
15
15
  Object.defineProperty(exports, "FFIDInquiryForm", {
16
16
  enumerable: true,
17
- get: function () { return chunkRDQ4R3XC_cjs.FFIDInquiryForm; }
17
+ get: function () { return chunkEM5EGNGE_cjs.FFIDInquiryForm; }
18
18
  });
19
19
  Object.defineProperty(exports, "FFIDLoginButton", {
20
20
  enumerable: true,
21
- get: function () { return chunkRDQ4R3XC_cjs.FFIDLoginButton; }
21
+ get: function () { return chunkEM5EGNGE_cjs.FFIDLoginButton; }
22
22
  });
23
23
  Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
24
24
  enumerable: true,
25
- get: function () { return chunkRDQ4R3XC_cjs.FFIDOrganizationSwitcher; }
25
+ get: function () { return chunkEM5EGNGE_cjs.FFIDOrganizationSwitcher; }
26
26
  });
27
27
  Object.defineProperty(exports, "FFIDSubscriptionBadge", {
28
28
  enumerable: true,
29
- get: function () { return chunkRDQ4R3XC_cjs.FFIDSubscriptionBadge; }
29
+ get: function () { return chunkEM5EGNGE_cjs.FFIDSubscriptionBadge; }
30
30
  });
31
31
  Object.defineProperty(exports, "FFIDUserMenu", {
32
32
  enumerable: true,
33
- get: function () { return chunkRDQ4R3XC_cjs.FFIDUserMenu; }
33
+ get: function () { return chunkEM5EGNGE_cjs.FFIDUserMenu; }
34
34
  });
@@ -1,3 +1,3 @@
1
- export { H as FFIDAnnouncementBadge, ai as FFIDAnnouncementBadgeClassNames, aj as FFIDAnnouncementBadgeProps, I as FFIDAnnouncementList, ak as FFIDAnnouncementListClassNames, al as FFIDAnnouncementListProps, S as FFIDInquiryForm, T as FFIDInquiryFormCategoryItem, U as FFIDInquiryFormClassNames, V as FFIDInquiryFormLegalLayout, W as FFIDInquiryFormOrganization, X as FFIDInquiryFormPlaceholderContext, Y as FFIDInquiryFormPrefill, Z as FFIDInquiryFormProps, _ as FFIDInquiryFormSubmitData, $ as FFIDInquiryFormSubmitResult, a1 as FFIDLoginButton, am as FFIDLoginButtonProps, a4 as FFIDOrganizationSwitcher, an as FFIDOrganizationSwitcherClassNames, ao as FFIDOrganizationSwitcherProps, a9 as FFIDSubscriptionBadge, ap as FFIDSubscriptionBadgeClassNames, aq as FFIDSubscriptionBadgeProps, ab as FFIDUserMenu, ar as FFIDUserMenuClassNames, as as FFIDUserMenuProps } from '../index--wRiPlpi.cjs';
1
+ export { H as FFIDAnnouncementBadge, ai as FFIDAnnouncementBadgeClassNames, aj as FFIDAnnouncementBadgeProps, I as FFIDAnnouncementList, ak as FFIDAnnouncementListClassNames, al as FFIDAnnouncementListProps, S as FFIDInquiryForm, T as FFIDInquiryFormCategoryItem, U as FFIDInquiryFormClassNames, V as FFIDInquiryFormLegalLayout, W as FFIDInquiryFormOrganization, X as FFIDInquiryFormPlaceholderContext, Y as FFIDInquiryFormPrefill, Z as FFIDInquiryFormProps, _ as FFIDInquiryFormSubmitData, $ as FFIDInquiryFormSubmitResult, a1 as FFIDLoginButton, am as FFIDLoginButtonProps, a4 as FFIDOrganizationSwitcher, an as FFIDOrganizationSwitcherClassNames, ao as FFIDOrganizationSwitcherProps, a9 as FFIDSubscriptionBadge, ap as FFIDSubscriptionBadgeClassNames, aq as FFIDSubscriptionBadgeProps, ab as FFIDUserMenu, ar as FFIDUserMenuClassNames, as as FFIDUserMenuProps } from '../index-btouGGKr.cjs';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
@@ -1,3 +1,3 @@
1
- export { H as FFIDAnnouncementBadge, ai as FFIDAnnouncementBadgeClassNames, aj as FFIDAnnouncementBadgeProps, I as FFIDAnnouncementList, ak as FFIDAnnouncementListClassNames, al as FFIDAnnouncementListProps, S as FFIDInquiryForm, T as FFIDInquiryFormCategoryItem, U as FFIDInquiryFormClassNames, V as FFIDInquiryFormLegalLayout, W as FFIDInquiryFormOrganization, X as FFIDInquiryFormPlaceholderContext, Y as FFIDInquiryFormPrefill, Z as FFIDInquiryFormProps, _ as FFIDInquiryFormSubmitData, $ as FFIDInquiryFormSubmitResult, a1 as FFIDLoginButton, am as FFIDLoginButtonProps, a4 as FFIDOrganizationSwitcher, an as FFIDOrganizationSwitcherClassNames, ao as FFIDOrganizationSwitcherProps, a9 as FFIDSubscriptionBadge, ap as FFIDSubscriptionBadgeClassNames, aq as FFIDSubscriptionBadgeProps, ab as FFIDUserMenu, ar as FFIDUserMenuClassNames, as as FFIDUserMenuProps } from '../index--wRiPlpi.js';
1
+ export { H as FFIDAnnouncementBadge, ai as FFIDAnnouncementBadgeClassNames, aj as FFIDAnnouncementBadgeProps, I as FFIDAnnouncementList, ak as FFIDAnnouncementListClassNames, al as FFIDAnnouncementListProps, S as FFIDInquiryForm, T as FFIDInquiryFormCategoryItem, U as FFIDInquiryFormClassNames, V as FFIDInquiryFormLegalLayout, W as FFIDInquiryFormOrganization, X as FFIDInquiryFormPlaceholderContext, Y as FFIDInquiryFormPrefill, Z as FFIDInquiryFormProps, _ as FFIDInquiryFormSubmitData, $ as FFIDInquiryFormSubmitResult, a1 as FFIDLoginButton, am as FFIDLoginButtonProps, a4 as FFIDOrganizationSwitcher, an as FFIDOrganizationSwitcherClassNames, ao as FFIDOrganizationSwitcherProps, a9 as FFIDSubscriptionBadge, ap as FFIDSubscriptionBadgeClassNames, aq as FFIDSubscriptionBadgeProps, ab as FFIDUserMenu, ar as FFIDUserMenuClassNames, as as FFIDUserMenuProps } from '../index-btouGGKr.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
@@ -1 +1 @@
1
- export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-U57ZDFEN.js';
1
+ export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-7NRO2TBG.js';
@@ -1,4 +1,4 @@
1
- import { E as EffectiveSubscriptionStatus } from './types-BeVl-z12.cjs';
1
+ import { E as EffectiveSubscriptionStatus } from './types-Cjb9J0rL.cjs';
2
2
 
3
3
  /**
4
4
  * Inquiry types exposed by the FFID SDK.
@@ -1,4 +1,4 @@
1
- import { E as EffectiveSubscriptionStatus } from './types-BeVl-z12.js';
1
+ import { E as EffectiveSubscriptionStatus } from './types-Cjb9J0rL.js';
2
2
 
3
3
  /**
4
4
  * Inquiry types exposed by the FFID SDK.
@@ -80,7 +80,8 @@ declare const EFFECTIVE_SUBSCRIPTION_STATUSES: readonly ["active", "active_cance
80
80
  * `src/lib/common/subscription-helpers.ts`, and a server-side unit test pins
81
81
  * element-equality between the two arrays (#3474) — convention-only sync
82
82
  * could drift silently in the server-extending direction (a new server
83
- * literal would fall through SDK consumers' `switch` defaults).
83
+ * literal would fall through SDK consumers' `switch` defaults). The PR gate also
84
+ * runs `npm run sdk:verify-sync` for SDK/server subscription changes.
84
85
  */
85
86
  type EffectiveSubscriptionStatus = (typeof EFFECTIVE_SUBSCRIPTION_STATUSES)[number];
86
87
 
@@ -80,7 +80,8 @@ declare const EFFECTIVE_SUBSCRIPTION_STATUSES: readonly ["active", "active_cance
80
80
  * `src/lib/common/subscription-helpers.ts`, and a server-side unit test pins
81
81
  * element-equality between the two arrays (#3474) — convention-only sync
82
82
  * could drift silently in the server-extending direction (a new server
83
- * literal would fall through SDK consumers' `switch` defaults).
83
+ * literal would fall through SDK consumers' `switch` defaults). The PR gate also
84
+ * runs `npm run sdk:verify-sync` for SDK/server subscription changes.
84
85
  */
85
86
  type EffectiveSubscriptionStatus = (typeof EFFECTIVE_SUBSCRIPTION_STATUSES)[number];
86
87
 
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkRDQ4R3XC_cjs = require('./chunk-RDQ4R3XC.cjs');
3
+ var chunkEM5EGNGE_cjs = require('./chunk-EM5EGNGE.cjs');
4
4
  var chunkH5O2CCAY_cjs = require('./chunk-H5O2CCAY.cjs');
5
5
  var react = require('react');
6
6
  var jsxRuntime = require('react/jsx-runtime');
@@ -54,8 +54,8 @@ function defaultRedirect(url) {
54
54
  }
55
55
  function useRequireActiveSubscription(options) {
56
56
  const { redirectTo, allowGrace = true, onRedirect } = options;
57
- const { isLoading, error } = chunkRDQ4R3XC_cjs.useFFIDContext();
58
- const { effectiveStatus, isBlocked, isGrace } = chunkRDQ4R3XC_cjs.useSubscription();
57
+ const { isLoading, error } = chunkEM5EGNGE_cjs.useFFIDContext();
58
+ const { effectiveStatus, isBlocked, isGrace } = chunkEM5EGNGE_cjs.useSubscription();
59
59
  const hasFetchError = error !== null && effectiveStatus === null;
60
60
  const shouldRedirect = !isLoading && !hasFetchError && (isBlocked || !allowGrace && isGrace || effectiveStatus === null);
61
61
  react.useEffect(() => {
@@ -76,7 +76,7 @@ function useRequireActiveSubscription(options) {
76
76
  }
77
77
  function withFFIDAuth(Component, options = {}) {
78
78
  const WrappedComponent = (props) => {
79
- const { isLoading, isAuthenticated, login } = chunkRDQ4R3XC_cjs.useFFIDContext();
79
+ const { isLoading, isAuthenticated, login } = chunkEM5EGNGE_cjs.useFFIDContext();
80
80
  const hasRedirected = react.useRef(false);
81
81
  react.useEffect(() => {
82
82
  if (!isLoading && !isAuthenticated && options.redirectToLogin && !hasRedirected.current) {
@@ -105,155 +105,155 @@ var FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS = 1e3;
105
105
 
106
106
  Object.defineProperty(exports, "ACCESS_GRANTING_EFFECTIVE_STATUSES", {
107
107
  enumerable: true,
108
- get: function () { return chunkRDQ4R3XC_cjs.ACCESS_GRANTING_EFFECTIVE_STATUSES; }
108
+ get: function () { return chunkEM5EGNGE_cjs.ACCESS_GRANTING_EFFECTIVE_STATUSES; }
109
109
  });
110
110
  Object.defineProperty(exports, "BLOCKING_EFFECTIVE_STATUSES", {
111
111
  enumerable: true,
112
- get: function () { return chunkRDQ4R3XC_cjs.BLOCKING_EFFECTIVE_STATUSES; }
112
+ get: function () { return chunkEM5EGNGE_cjs.BLOCKING_EFFECTIVE_STATUSES; }
113
113
  });
114
114
  Object.defineProperty(exports, "DEFAULT_API_BASE_URL", {
115
115
  enumerable: true,
116
- get: function () { return chunkRDQ4R3XC_cjs.DEFAULT_API_BASE_URL; }
116
+ get: function () { return chunkEM5EGNGE_cjs.DEFAULT_API_BASE_URL; }
117
117
  });
118
118
  Object.defineProperty(exports, "DEFAULT_OAUTH_SCOPES", {
119
119
  enumerable: true,
120
- get: function () { return chunkRDQ4R3XC_cjs.DEFAULT_OAUTH_SCOPES; }
120
+ get: function () { return chunkEM5EGNGE_cjs.DEFAULT_OAUTH_SCOPES; }
121
121
  });
122
122
  Object.defineProperty(exports, "EFFECTIVE_SUBSCRIPTION_STATUSES", {
123
123
  enumerable: true,
124
- get: function () { return chunkRDQ4R3XC_cjs.EFFECTIVE_SUBSCRIPTION_STATUSES; }
124
+ get: function () { return chunkEM5EGNGE_cjs.EFFECTIVE_SUBSCRIPTION_STATUSES; }
125
125
  });
126
126
  Object.defineProperty(exports, "FFIDAnnouncementBadge", {
127
127
  enumerable: true,
128
- get: function () { return chunkRDQ4R3XC_cjs.FFIDAnnouncementBadge; }
128
+ get: function () { return chunkEM5EGNGE_cjs.FFIDAnnouncementBadge; }
129
129
  });
130
130
  Object.defineProperty(exports, "FFIDAnnouncementList", {
131
131
  enumerable: true,
132
- get: function () { return chunkRDQ4R3XC_cjs.FFIDAnnouncementList; }
132
+ get: function () { return chunkEM5EGNGE_cjs.FFIDAnnouncementList; }
133
133
  });
134
134
  Object.defineProperty(exports, "FFIDInquiryForm", {
135
135
  enumerable: true,
136
- get: function () { return chunkRDQ4R3XC_cjs.FFIDInquiryForm; }
136
+ get: function () { return chunkEM5EGNGE_cjs.FFIDInquiryForm; }
137
137
  });
138
138
  Object.defineProperty(exports, "FFIDLoginButton", {
139
139
  enumerable: true,
140
- get: function () { return chunkRDQ4R3XC_cjs.FFIDLoginButton; }
140
+ get: function () { return chunkEM5EGNGE_cjs.FFIDLoginButton; }
141
141
  });
142
142
  Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
143
143
  enumerable: true,
144
- get: function () { return chunkRDQ4R3XC_cjs.FFIDOrganizationSwitcher; }
144
+ get: function () { return chunkEM5EGNGE_cjs.FFIDOrganizationSwitcher; }
145
145
  });
146
146
  Object.defineProperty(exports, "FFIDProvider", {
147
147
  enumerable: true,
148
- get: function () { return chunkRDQ4R3XC_cjs.FFIDProvider; }
148
+ get: function () { return chunkEM5EGNGE_cjs.FFIDProvider; }
149
149
  });
150
150
  Object.defineProperty(exports, "FFIDSDKError", {
151
151
  enumerable: true,
152
- get: function () { return chunkRDQ4R3XC_cjs.FFIDSDKError; }
152
+ get: function () { return chunkEM5EGNGE_cjs.FFIDSDKError; }
153
153
  });
154
154
  Object.defineProperty(exports, "FFIDSubscriptionBadge", {
155
155
  enumerable: true,
156
- get: function () { return chunkRDQ4R3XC_cjs.FFIDSubscriptionBadge; }
156
+ get: function () { return chunkEM5EGNGE_cjs.FFIDSubscriptionBadge; }
157
157
  });
158
158
  Object.defineProperty(exports, "FFIDUserMenu", {
159
159
  enumerable: true,
160
- get: function () { return chunkRDQ4R3XC_cjs.FFIDUserMenu; }
160
+ get: function () { return chunkEM5EGNGE_cjs.FFIDUserMenu; }
161
161
  });
162
162
  Object.defineProperty(exports, "FFID_ANNOUNCEMENTS_ERROR_CODES", {
163
163
  enumerable: true,
164
- get: function () { return chunkRDQ4R3XC_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
164
+ get: function () { return chunkEM5EGNGE_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
165
165
  });
166
166
  Object.defineProperty(exports, "FFID_ERROR_CODES", {
167
167
  enumerable: true,
168
- get: function () { return chunkRDQ4R3XC_cjs.FFID_ERROR_CODES; }
168
+ get: function () { return chunkEM5EGNGE_cjs.FFID_ERROR_CODES; }
169
169
  });
170
170
  Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES", {
171
171
  enumerable: true,
172
- get: function () { return chunkRDQ4R3XC_cjs.FFID_INQUIRY_CATEGORIES; }
172
+ get: function () { return chunkEM5EGNGE_cjs.FFID_INQUIRY_CATEGORIES; }
173
173
  });
174
174
  Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES_SITE_2026", {
175
175
  enumerable: true,
176
- get: function () { return chunkRDQ4R3XC_cjs.FFID_INQUIRY_CATEGORIES_SITE_2026; }
176
+ get: function () { return chunkEM5EGNGE_cjs.FFID_INQUIRY_CATEGORIES_SITE_2026; }
177
177
  });
178
178
  Object.defineProperty(exports, "clearState", {
179
179
  enumerable: true,
180
- get: function () { return chunkRDQ4R3XC_cjs.cleanupStateStorage; }
180
+ get: function () { return chunkEM5EGNGE_cjs.cleanupStateStorage; }
181
181
  });
182
182
  Object.defineProperty(exports, "computeEffectiveStatusFromSession", {
183
183
  enumerable: true,
184
- get: function () { return chunkRDQ4R3XC_cjs.computeEffectiveStatusFromSession; }
184
+ get: function () { return chunkEM5EGNGE_cjs.computeEffectiveStatusFromSession; }
185
185
  });
186
186
  Object.defineProperty(exports, "createFFIDAnnouncementsClient", {
187
187
  enumerable: true,
188
- get: function () { return chunkRDQ4R3XC_cjs.createFFIDAnnouncementsClient; }
188
+ get: function () { return chunkEM5EGNGE_cjs.createFFIDAnnouncementsClient; }
189
189
  });
190
190
  Object.defineProperty(exports, "createFFIDClient", {
191
191
  enumerable: true,
192
- get: function () { return chunkRDQ4R3XC_cjs.createFFIDClient; }
192
+ get: function () { return chunkEM5EGNGE_cjs.createFFIDClient; }
193
193
  });
194
194
  Object.defineProperty(exports, "createTokenStore", {
195
195
  enumerable: true,
196
- get: function () { return chunkRDQ4R3XC_cjs.createTokenStore; }
196
+ get: function () { return chunkEM5EGNGE_cjs.createTokenStore; }
197
197
  });
198
198
  Object.defineProperty(exports, "generateCodeChallenge", {
199
199
  enumerable: true,
200
- get: function () { return chunkRDQ4R3XC_cjs.generateCodeChallenge; }
200
+ get: function () { return chunkEM5EGNGE_cjs.generateCodeChallenge; }
201
201
  });
202
202
  Object.defineProperty(exports, "generateCodeVerifier", {
203
203
  enumerable: true,
204
- get: function () { return chunkRDQ4R3XC_cjs.generateCodeVerifier; }
204
+ get: function () { return chunkEM5EGNGE_cjs.generateCodeVerifier; }
205
205
  });
206
206
  Object.defineProperty(exports, "handleRedirectCallback", {
207
207
  enumerable: true,
208
- get: function () { return chunkRDQ4R3XC_cjs.handleRedirectCallback; }
208
+ get: function () { return chunkEM5EGNGE_cjs.handleRedirectCallback; }
209
209
  });
210
210
  Object.defineProperty(exports, "hasAccessFromUserinfo", {
211
211
  enumerable: true,
212
- get: function () { return chunkRDQ4R3XC_cjs.hasAccessFromUserinfo; }
212
+ get: function () { return chunkEM5EGNGE_cjs.hasAccessFromUserinfo; }
213
213
  });
214
214
  Object.defineProperty(exports, "isBlockedFromUserinfo", {
215
215
  enumerable: true,
216
- get: function () { return chunkRDQ4R3XC_cjs.isBlockedFromUserinfo; }
216
+ get: function () { return chunkEM5EGNGE_cjs.isBlockedFromUserinfo; }
217
217
  });
218
218
  Object.defineProperty(exports, "isFFIDInquiryCategorySite2026", {
219
219
  enumerable: true,
220
- get: function () { return chunkRDQ4R3XC_cjs.isFFIDInquiryCategorySite2026; }
220
+ get: function () { return chunkEM5EGNGE_cjs.isFFIDInquiryCategorySite2026; }
221
221
  });
222
222
  Object.defineProperty(exports, "normalizeRedirectUri", {
223
223
  enumerable: true,
224
- get: function () { return chunkRDQ4R3XC_cjs.normalizeRedirectUri; }
224
+ get: function () { return chunkEM5EGNGE_cjs.normalizeRedirectUri; }
225
225
  });
226
226
  Object.defineProperty(exports, "retrieveCodeVerifier", {
227
227
  enumerable: true,
228
- get: function () { return chunkRDQ4R3XC_cjs.retrieveCodeVerifier; }
228
+ get: function () { return chunkEM5EGNGE_cjs.retrieveCodeVerifier; }
229
229
  });
230
230
  Object.defineProperty(exports, "retrieveState", {
231
231
  enumerable: true,
232
- get: function () { return chunkRDQ4R3XC_cjs.retrieveState; }
232
+ get: function () { return chunkEM5EGNGE_cjs.retrieveState; }
233
233
  });
234
234
  Object.defineProperty(exports, "storeCodeVerifier", {
235
235
  enumerable: true,
236
- get: function () { return chunkRDQ4R3XC_cjs.storeCodeVerifier; }
236
+ get: function () { return chunkEM5EGNGE_cjs.storeCodeVerifier; }
237
237
  });
238
238
  Object.defineProperty(exports, "storeState", {
239
239
  enumerable: true,
240
- get: function () { return chunkRDQ4R3XC_cjs.storeState; }
240
+ get: function () { return chunkEM5EGNGE_cjs.storeState; }
241
241
  });
242
242
  Object.defineProperty(exports, "useFFID", {
243
243
  enumerable: true,
244
- get: function () { return chunkRDQ4R3XC_cjs.useFFID; }
244
+ get: function () { return chunkEM5EGNGE_cjs.useFFID; }
245
245
  });
246
246
  Object.defineProperty(exports, "useFFIDAnnouncements", {
247
247
  enumerable: true,
248
- get: function () { return chunkRDQ4R3XC_cjs.useFFIDAnnouncements; }
248
+ get: function () { return chunkEM5EGNGE_cjs.useFFIDAnnouncements; }
249
249
  });
250
250
  Object.defineProperty(exports, "useSubscription", {
251
251
  enumerable: true,
252
- get: function () { return chunkRDQ4R3XC_cjs.useSubscription; }
252
+ get: function () { return chunkEM5EGNGE_cjs.useSubscription; }
253
253
  });
254
254
  Object.defineProperty(exports, "withSubscription", {
255
255
  enumerable: true,
256
- get: function () { return chunkRDQ4R3XC_cjs.withSubscription; }
256
+ get: function () { return chunkEM5EGNGE_cjs.withSubscription; }
257
257
  });
258
258
  Object.defineProperty(exports, "ALL_DENIED_EXCEPT_NECESSARY", {
259
259
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FFIDSubscriptionStatus, a as FFIDPrompt, b as FFIDConfig, c as FFIDApiResponse, d as FFIDSessionResponse, e as FFIDSignOutResult, f as FFIDRedirectResult, g as FFIDError, h as FFIDSubscriptionCheckResponse, i as FFIDCheckServiceAccessParams, j as FFIDServiceAccessDecision, k as FFIDAnalyticsConfig, l as FFIDVerifyAccessTokenOptions, m as FFIDOAuthUserInfo, n as FFIDInquiryCreateParams, o as FFIDInquiryCreateResponse, p as FFIDAuthMode, q as FFIDLogger, r as FFIDCacheAdapter, s as FFIDUser, t as FFIDOrganization, u as FFIDSubscription, v as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, w as FFIDOAuthUserInfoSubscription, x as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, y as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, z as FFIDAnnouncementsLogger } from './index--wRiPlpi.cjs';
2
- export { B as Announcement, C as AnnouncementStatus, D as AnnouncementType, G as EFFECTIVE_SUBSCRIPTION_STATUSES, H as FFIDAnnouncementBadge, I as FFIDAnnouncementList, J as FFIDAnnouncementsError, K as FFIDAnnouncementsErrorCode, M as FFIDAnnouncementsServerResponse, N as FFIDApiResponseMeta, O as FFIDCacheConfig, P as FFIDContextValue, Q as FFIDInquiryCategory, R as FFIDInquiryCategorySite2026, S as FFIDInquiryForm, T as FFIDInquiryFormCategoryItem, U as FFIDInquiryFormClassNames, V as FFIDInquiryFormLegalLayout, W as FFIDInquiryFormOrganization, X as FFIDInquiryFormPlaceholderContext, Y as FFIDInquiryFormPrefill, Z as FFIDInquiryFormProps, _ as FFIDInquiryFormSubmitData, $ as FFIDInquiryFormSubmitResult, a0 as FFIDJwtClaims, a1 as FFIDLoginButton, a2 as FFIDOAuthTokenResponse, a3 as FFIDOAuthUserInfoMemberRole, a4 as FFIDOrganizationSwitcher, a5 as FFIDRedirectErrorCode, a6 as FFIDSeatModel, a7 as FFIDServiceAccessDenialReason, a8 as FFIDServiceAccessFailPolicy, a9 as FFIDSubscriptionBadge, aa as FFIDTokenIntrospectionResponse, ab as FFIDUserMenu, ac as FFID_INQUIRY_CATEGORIES, ad as FFID_INQUIRY_CATEGORIES_SITE_2026, ae as UseFFIDAnnouncementsOptions, af as UseFFIDAnnouncementsReturn, ag as isFFIDInquiryCategorySite2026, ah as useFFIDAnnouncements } from './index--wRiPlpi.cjs';
1
+ import { F as FFIDSubscriptionStatus, a as FFIDPrompt, b as FFIDConfig, c as FFIDApiResponse, d as FFIDSessionResponse, e as FFIDSignOutResult, f as FFIDRedirectResult, g as FFIDError, h as FFIDSubscriptionCheckResponse, i as FFIDCheckServiceAccessParams, j as FFIDServiceAccessDecision, k as FFIDAnalyticsConfig, l as FFIDVerifyAccessTokenOptions, m as FFIDOAuthUserInfo, n as FFIDInquiryCreateParams, o as FFIDInquiryCreateResponse, p as FFIDAuthMode, q as FFIDLogger, r as FFIDCacheAdapter, s as FFIDUser, t as FFIDOrganization, u as FFIDSubscription, v as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, w as FFIDOAuthUserInfoSubscription, x as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, y as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, z as FFIDAnnouncementsLogger } from './index-btouGGKr.cjs';
2
+ export { B as Announcement, C as AnnouncementStatus, D as AnnouncementType, G as EFFECTIVE_SUBSCRIPTION_STATUSES, H as FFIDAnnouncementBadge, I as FFIDAnnouncementList, J as FFIDAnnouncementsError, K as FFIDAnnouncementsErrorCode, M as FFIDAnnouncementsServerResponse, N as FFIDApiResponseMeta, O as FFIDCacheConfig, P as FFIDContextValue, Q as FFIDInquiryCategory, R as FFIDInquiryCategorySite2026, S as FFIDInquiryForm, T as FFIDInquiryFormCategoryItem, U as FFIDInquiryFormClassNames, V as FFIDInquiryFormLegalLayout, W as FFIDInquiryFormOrganization, X as FFIDInquiryFormPlaceholderContext, Y as FFIDInquiryFormPrefill, Z as FFIDInquiryFormProps, _ as FFIDInquiryFormSubmitData, $ as FFIDInquiryFormSubmitResult, a0 as FFIDJwtClaims, a1 as FFIDLoginButton, a2 as FFIDOAuthTokenResponse, a3 as FFIDOAuthUserInfoMemberRole, a4 as FFIDOrganizationSwitcher, a5 as FFIDRedirectErrorCode, a6 as FFIDSeatModel, a7 as FFIDServiceAccessDenialReason, a8 as FFIDServiceAccessFailPolicy, a9 as FFIDSubscriptionBadge, aa as FFIDTokenIntrospectionResponse, ab as FFIDUserMenu, ac as FFID_INQUIRY_CATEGORIES, ad as FFID_INQUIRY_CATEGORIES_SITE_2026, ae as UseFFIDAnnouncementsOptions, af as UseFFIDAnnouncementsReturn, ag as isFFIDInquiryCategorySite2026, ah as useFFIDAnnouncements } from './index-btouGGKr.cjs';
3
3
  export { A as ALL_DENIED_EXCEPT_NECESSARY, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, r as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, I as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, f as FFIDCookiePolicy, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, _ as FFID_CONSENT_ERROR_CODES, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, aj as decodeConsentCookie, al as encodeConsentCookie, an as readConsentCookie, ao as readConsentDismissalTimestamp, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp } from './FFIDCookieLink-BJgVcJyw.cjs';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { ReactNode, ComponentType, FC } from 'react';
@@ -1524,7 +1524,25 @@ interface HandleRedirectCallbackOptions {
1524
1524
  * absolute URL, a relative URL, or a bare query string. Defaults to
1525
1525
  * `window.location.search` in the browser.
1526
1526
  */
1527
- url?: string;
1527
+ url?: string | undefined;
1528
+ /**
1529
+ * Whether to remove `code` / `state` from the browser URL via
1530
+ * `window.history.replaceState` after a successful exchange. Defaults to
1531
+ * `true`.
1532
+ *
1533
+ * Set to `false` to take over URL cleanup on the consumer side. This matters
1534
+ * on Next.js App Router: the App Router patches `history.replaceState`, so
1535
+ * the SDK's cleanup re-evaluates `useSearchParams()` and re-runs any effect
1536
+ * that depends on it. A callback effect that treats "no `code` in the URL"
1537
+ * as "start a new login" then fires `login()` again, causing repeated
1538
+ * authorize redirects (#4254). With `cleanUrl: false`, remove `code` /
1539
+ * `state` yourself once callback handling is done — keep the other query
1540
+ * params, mirroring the SDK's own cleanup. Consumed callback params left in
1541
+ * the URL fail on reload with `STATE_MISMATCH_ERROR`: the one-time OAuth
1542
+ * `state` stored at authorize time was already consumed, so re-processing
1543
+ * fails state validation before any exchange is attempted.
1544
+ */
1545
+ cleanUrl?: boolean | undefined;
1528
1546
  }
1529
1547
  /**
1530
1548
  * Complete an OAuth authorization-code redirect.
@@ -1538,13 +1556,14 @@ interface HandleRedirectCallbackOptions {
1538
1556
  * neither side has any state (a genuine no-state flow). Omitting the callback
1539
1557
  * `state` does NOT bypass the check (#3841).
1540
1558
  * 3. Retrieves the PKCE verifier and exchanges the code for tokens.
1541
- * 4. On success, removes `code` + `state` from the browser URL.
1559
+ * 4. On success, removes `code` + `state` from the browser URL (skipped when
1560
+ * `options.cleanUrl` is `false` — the consumer then owns URL cleanup).
1542
1561
  *
1543
1562
  * SSR-safe: when there is no `window` and no `options.url`, no exchange is
1544
1563
  * attempted and an error result is returned.
1545
1564
  *
1546
1565
  * @param client - FFID client (or any object exposing exchangeCodeForTokens / createError / logger)
1547
- * @param options - Optional callback URL override
1566
+ * @param options - Optional callback URL override and URL cleanup control (see {@link HandleRedirectCallbackOptions})
1548
1567
  */
1549
1568
  declare function handleRedirectCallback(client: HandleRedirectCallbackClient, options?: HandleRedirectCallbackOptions): Promise<FFIDApiResponse<void>>;
1550
1569
 
@@ -1596,6 +1615,23 @@ declare function createKVCacheAdapter(kv: KVNamespaceLike): FFIDCacheAdapter;
1596
1615
  interface FFIDProviderProps extends FFIDConfig {
1597
1616
  /** Child components */
1598
1617
  children: ReactNode;
1618
+ /**
1619
+ * Token mode only: whether the provider removes `code` / `state` from the
1620
+ * browser URL (`history.replaceState`) after a successful code exchange.
1621
+ * Defaults to `true`. Forwarded to
1622
+ * {@link HandleRedirectCallbackOptions.cleanUrl} — see its JSDoc for the
1623
+ * Next.js App Router background (#4254). Read once when the mount-time code
1624
+ * exchange runs; toggling it afterwards has no effect.
1625
+ *
1626
+ * Set to `false` on Next.js App Router when the patched history API
1627
+ * re-evaluating `useSearchParams()` (and re-running effects that depend on
1628
+ * it) is a problem — then remove `code` / `state` yourself (keeping other
1629
+ * query params) after authentication completes. Consumed callback params
1630
+ * left in the URL fail on reload with `STATE_MISMATCH_ERROR` (the one-time
1631
+ * OAuth `state` was already consumed), which also leaves an authenticated
1632
+ * user rendered as signed-out until the URL is cleaned.
1633
+ */
1634
+ cleanCallbackUrl?: boolean | undefined;
1599
1635
  }
1600
1636
  /**
1601
1637
  * FFIDProvider - Wrap your app to enable FFID authentication
@@ -1607,7 +1643,7 @@ interface FFIDProviderProps extends FFIDConfig {
1607
1643
  * - Automatic session refresh
1608
1644
  * - Token mode: automatic code exchange and token refresh
1609
1645
  */
1610
- declare function FFIDProvider({ children, serviceCode, scope, apiBaseUrl, debug, logger, refreshInterval, onAuthStateChange, onError, authMode, clientId, }: FFIDProviderProps): react_jsx_runtime.JSX.Element;
1646
+ declare function FFIDProvider({ children, serviceCode, scope, apiBaseUrl, debug, logger, refreshInterval, onAuthStateChange, onError, authMode, clientId, cleanCallbackUrl, }: FFIDProviderProps): react_jsx_runtime.JSX.Element;
1611
1647
 
1612
1648
  /**
1613
1649
  * Return type for useFFID hook
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FFIDSubscriptionStatus, a as FFIDPrompt, b as FFIDConfig, c as FFIDApiResponse, d as FFIDSessionResponse, e as FFIDSignOutResult, f as FFIDRedirectResult, g as FFIDError, h as FFIDSubscriptionCheckResponse, i as FFIDCheckServiceAccessParams, j as FFIDServiceAccessDecision, k as FFIDAnalyticsConfig, l as FFIDVerifyAccessTokenOptions, m as FFIDOAuthUserInfo, n as FFIDInquiryCreateParams, o as FFIDInquiryCreateResponse, p as FFIDAuthMode, q as FFIDLogger, r as FFIDCacheAdapter, s as FFIDUser, t as FFIDOrganization, u as FFIDSubscription, v as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, w as FFIDOAuthUserInfoSubscription, x as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, y as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, z as FFIDAnnouncementsLogger } from './index--wRiPlpi.js';
2
- export { B as Announcement, C as AnnouncementStatus, D as AnnouncementType, G as EFFECTIVE_SUBSCRIPTION_STATUSES, H as FFIDAnnouncementBadge, I as FFIDAnnouncementList, J as FFIDAnnouncementsError, K as FFIDAnnouncementsErrorCode, M as FFIDAnnouncementsServerResponse, N as FFIDApiResponseMeta, O as FFIDCacheConfig, P as FFIDContextValue, Q as FFIDInquiryCategory, R as FFIDInquiryCategorySite2026, S as FFIDInquiryForm, T as FFIDInquiryFormCategoryItem, U as FFIDInquiryFormClassNames, V as FFIDInquiryFormLegalLayout, W as FFIDInquiryFormOrganization, X as FFIDInquiryFormPlaceholderContext, Y as FFIDInquiryFormPrefill, Z as FFIDInquiryFormProps, _ as FFIDInquiryFormSubmitData, $ as FFIDInquiryFormSubmitResult, a0 as FFIDJwtClaims, a1 as FFIDLoginButton, a2 as FFIDOAuthTokenResponse, a3 as FFIDOAuthUserInfoMemberRole, a4 as FFIDOrganizationSwitcher, a5 as FFIDRedirectErrorCode, a6 as FFIDSeatModel, a7 as FFIDServiceAccessDenialReason, a8 as FFIDServiceAccessFailPolicy, a9 as FFIDSubscriptionBadge, aa as FFIDTokenIntrospectionResponse, ab as FFIDUserMenu, ac as FFID_INQUIRY_CATEGORIES, ad as FFID_INQUIRY_CATEGORIES_SITE_2026, ae as UseFFIDAnnouncementsOptions, af as UseFFIDAnnouncementsReturn, ag as isFFIDInquiryCategorySite2026, ah as useFFIDAnnouncements } from './index--wRiPlpi.js';
1
+ import { F as FFIDSubscriptionStatus, a as FFIDPrompt, b as FFIDConfig, c as FFIDApiResponse, d as FFIDSessionResponse, e as FFIDSignOutResult, f as FFIDRedirectResult, g as FFIDError, h as FFIDSubscriptionCheckResponse, i as FFIDCheckServiceAccessParams, j as FFIDServiceAccessDecision, k as FFIDAnalyticsConfig, l as FFIDVerifyAccessTokenOptions, m as FFIDOAuthUserInfo, n as FFIDInquiryCreateParams, o as FFIDInquiryCreateResponse, p as FFIDAuthMode, q as FFIDLogger, r as FFIDCacheAdapter, s as FFIDUser, t as FFIDOrganization, u as FFIDSubscription, v as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, w as FFIDOAuthUserInfoSubscription, x as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, y as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, z as FFIDAnnouncementsLogger } from './index-btouGGKr.js';
2
+ export { B as Announcement, C as AnnouncementStatus, D as AnnouncementType, G as EFFECTIVE_SUBSCRIPTION_STATUSES, H as FFIDAnnouncementBadge, I as FFIDAnnouncementList, J as FFIDAnnouncementsError, K as FFIDAnnouncementsErrorCode, M as FFIDAnnouncementsServerResponse, N as FFIDApiResponseMeta, O as FFIDCacheConfig, P as FFIDContextValue, Q as FFIDInquiryCategory, R as FFIDInquiryCategorySite2026, S as FFIDInquiryForm, T as FFIDInquiryFormCategoryItem, U as FFIDInquiryFormClassNames, V as FFIDInquiryFormLegalLayout, W as FFIDInquiryFormOrganization, X as FFIDInquiryFormPlaceholderContext, Y as FFIDInquiryFormPrefill, Z as FFIDInquiryFormProps, _ as FFIDInquiryFormSubmitData, $ as FFIDInquiryFormSubmitResult, a0 as FFIDJwtClaims, a1 as FFIDLoginButton, a2 as FFIDOAuthTokenResponse, a3 as FFIDOAuthUserInfoMemberRole, a4 as FFIDOrganizationSwitcher, a5 as FFIDRedirectErrorCode, a6 as FFIDSeatModel, a7 as FFIDServiceAccessDenialReason, a8 as FFIDServiceAccessFailPolicy, a9 as FFIDSubscriptionBadge, aa as FFIDTokenIntrospectionResponse, ab as FFIDUserMenu, ac as FFID_INQUIRY_CATEGORIES, ad as FFID_INQUIRY_CATEGORIES_SITE_2026, ae as UseFFIDAnnouncementsOptions, af as UseFFIDAnnouncementsReturn, ag as isFFIDInquiryCategorySite2026, ah as useFFIDAnnouncements } from './index-btouGGKr.js';
3
3
  export { A as ALL_DENIED_EXCEPT_NECESSARY, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, r as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, I as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, f as FFIDCookiePolicy, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, _ as FFID_CONSENT_ERROR_CODES, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, aj as decodeConsentCookie, al as encodeConsentCookie, an as readConsentCookie, ao as readConsentDismissalTimestamp, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp } from './FFIDCookieLink-BJgVcJyw.js';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { ReactNode, ComponentType, FC } from 'react';
@@ -1524,7 +1524,25 @@ interface HandleRedirectCallbackOptions {
1524
1524
  * absolute URL, a relative URL, or a bare query string. Defaults to
1525
1525
  * `window.location.search` in the browser.
1526
1526
  */
1527
- url?: string;
1527
+ url?: string | undefined;
1528
+ /**
1529
+ * Whether to remove `code` / `state` from the browser URL via
1530
+ * `window.history.replaceState` after a successful exchange. Defaults to
1531
+ * `true`.
1532
+ *
1533
+ * Set to `false` to take over URL cleanup on the consumer side. This matters
1534
+ * on Next.js App Router: the App Router patches `history.replaceState`, so
1535
+ * the SDK's cleanup re-evaluates `useSearchParams()` and re-runs any effect
1536
+ * that depends on it. A callback effect that treats "no `code` in the URL"
1537
+ * as "start a new login" then fires `login()` again, causing repeated
1538
+ * authorize redirects (#4254). With `cleanUrl: false`, remove `code` /
1539
+ * `state` yourself once callback handling is done — keep the other query
1540
+ * params, mirroring the SDK's own cleanup. Consumed callback params left in
1541
+ * the URL fail on reload with `STATE_MISMATCH_ERROR`: the one-time OAuth
1542
+ * `state` stored at authorize time was already consumed, so re-processing
1543
+ * fails state validation before any exchange is attempted.
1544
+ */
1545
+ cleanUrl?: boolean | undefined;
1528
1546
  }
1529
1547
  /**
1530
1548
  * Complete an OAuth authorization-code redirect.
@@ -1538,13 +1556,14 @@ interface HandleRedirectCallbackOptions {
1538
1556
  * neither side has any state (a genuine no-state flow). Omitting the callback
1539
1557
  * `state` does NOT bypass the check (#3841).
1540
1558
  * 3. Retrieves the PKCE verifier and exchanges the code for tokens.
1541
- * 4. On success, removes `code` + `state` from the browser URL.
1559
+ * 4. On success, removes `code` + `state` from the browser URL (skipped when
1560
+ * `options.cleanUrl` is `false` — the consumer then owns URL cleanup).
1542
1561
  *
1543
1562
  * SSR-safe: when there is no `window` and no `options.url`, no exchange is
1544
1563
  * attempted and an error result is returned.
1545
1564
  *
1546
1565
  * @param client - FFID client (or any object exposing exchangeCodeForTokens / createError / logger)
1547
- * @param options - Optional callback URL override
1566
+ * @param options - Optional callback URL override and URL cleanup control (see {@link HandleRedirectCallbackOptions})
1548
1567
  */
1549
1568
  declare function handleRedirectCallback(client: HandleRedirectCallbackClient, options?: HandleRedirectCallbackOptions): Promise<FFIDApiResponse<void>>;
1550
1569
 
@@ -1596,6 +1615,23 @@ declare function createKVCacheAdapter(kv: KVNamespaceLike): FFIDCacheAdapter;
1596
1615
  interface FFIDProviderProps extends FFIDConfig {
1597
1616
  /** Child components */
1598
1617
  children: ReactNode;
1618
+ /**
1619
+ * Token mode only: whether the provider removes `code` / `state` from the
1620
+ * browser URL (`history.replaceState`) after a successful code exchange.
1621
+ * Defaults to `true`. Forwarded to
1622
+ * {@link HandleRedirectCallbackOptions.cleanUrl} — see its JSDoc for the
1623
+ * Next.js App Router background (#4254). Read once when the mount-time code
1624
+ * exchange runs; toggling it afterwards has no effect.
1625
+ *
1626
+ * Set to `false` on Next.js App Router when the patched history API
1627
+ * re-evaluating `useSearchParams()` (and re-running effects that depend on
1628
+ * it) is a problem — then remove `code` / `state` yourself (keeping other
1629
+ * query params) after authentication completes. Consumed callback params
1630
+ * left in the URL fail on reload with `STATE_MISMATCH_ERROR` (the one-time
1631
+ * OAuth `state` was already consumed), which also leaves an authenticated
1632
+ * user rendered as signed-out until the URL is cleaned.
1633
+ */
1634
+ cleanCallbackUrl?: boolean | undefined;
1599
1635
  }
1600
1636
  /**
1601
1637
  * FFIDProvider - Wrap your app to enable FFID authentication
@@ -1607,7 +1643,7 @@ interface FFIDProviderProps extends FFIDConfig {
1607
1643
  * - Automatic session refresh
1608
1644
  * - Token mode: automatic code exchange and token refresh
1609
1645
  */
1610
- declare function FFIDProvider({ children, serviceCode, scope, apiBaseUrl, debug, logger, refreshInterval, onAuthStateChange, onError, authMode, clientId, }: FFIDProviderProps): react_jsx_runtime.JSX.Element;
1646
+ declare function FFIDProvider({ children, serviceCode, scope, apiBaseUrl, debug, logger, refreshInterval, onAuthStateChange, onError, authMode, clientId, cleanCallbackUrl, }: FFIDProviderProps): react_jsx_runtime.JSX.Element;
1611
1647
 
1612
1648
  /**
1613
1649
  * Return type for useFFID hook
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { useFFIDContext, useSubscription } from './chunk-U57ZDFEN.js';
2
- export { ACCESS_GRANTING_EFFECTIVE_STATUSES, BLOCKING_EFFECTIVE_STATUSES, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EFFECTIVE_SUBSCRIPTION_STATUSES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_ERROR_CODES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, handleRedirectCallback, hasAccessFromUserinfo, isBlockedFromUserinfo, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, retrieveState, storeCodeVerifier, storeState, useFFID, useFFIDAnnouncements, useSubscription, withSubscription } from './chunk-U57ZDFEN.js';
1
+ import { useFFIDContext, useSubscription } from './chunk-7NRO2TBG.js';
2
+ export { ACCESS_GRANTING_EFFECTIVE_STATUSES, BLOCKING_EFFECTIVE_STATUSES, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EFFECTIVE_SUBSCRIPTION_STATUSES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_ERROR_CODES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, handleRedirectCallback, hasAccessFromUserinfo, isBlockedFromUserinfo, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, retrieveState, storeCodeVerifier, storeState, useFFID, useFFIDAnnouncements, useSubscription, withSubscription } from './chunk-7NRO2TBG.js';
3
3
  export { ALL_DENIED_EXCEPT_NECESSARY, CONSENT_COOKIE_NAME, CONSENT_DISMISSAL_TIMESTAMP_KEY, COOKIE_VERSION, DEFAULT_CONSENT_ERROR_MESSAGES, FFIDAnalyticsProvider, FFIDConsentError, FFIDCookieBanner, FFIDCookieLink, FFIDCookieSettings, FFID_CONSENT_ERROR_CODES, clearConsentDismissalTimestamp, decodeConsentCookie, encodeConsentCookie, readConsentCookie, readConsentDismissalTimestamp, useFFIDConsent, useFFIDConsentPreferences, writeConsentCookie, writeConsentDismissalTimestamp } from './chunk-G7VOX64X.js';
4
4
  import { useEffect, useRef } from 'react';
5
5
  import { jsx, Fragment } from 'react/jsx-runtime';
@@ -1222,7 +1222,7 @@ function createNonContractMethods(deps) {
1222
1222
  }
1223
1223
 
1224
1224
  // src/client/version-check.ts
1225
- var SDK_VERSION = "5.21.0";
1225
+ var SDK_VERSION = "5.22.0";
1226
1226
  var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
1227
1227
  var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
1228
1228
  function sdkHeaders() {
@@ -1,8 +1,8 @@
1
- import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-BQPhm-XL.cjs';
2
- export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDProvisionMemberPlan, x as FFIDProvisionMemberPlanStatus, y as FFIDProvisionMemberResult, z as FFIDProvisionMemberStatus, A as FFIDProvisionOrganizationDryRun, B as FFIDProvisionOrganizationMemberInput, C as FFIDProvisionOrganizationOutcome, D as FFIDProvisionOrganizationParams, E as FFIDProvisionOrganizationResponse, G as FFIDProvisionUserDryRun, H as FFIDProvisionUserOutcome, I as FFIDProvisionUserParams, J as FFIDProvisionUserProfileInput, K as FFIDProvisionUserResponse, L as FFIDProvisionedOrganization, M as FFIDProvisionedUser, N as FFIDRemoveMemberResponse, O as FFIDResetSessionResponse, P as FFIDSubscription, Q as FFIDUpdateMemberRoleResponse, R as FFIDUpdateUserProfileRequest, S as FFIDUser, T as FFIDUserProfile, U as TokenData, V as TokenStore, W as createFFIDClient, X as createTokenStore } from '../ffid-client-BQPhm-XL.cjs';
1
+ import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-CEJMpqRZ.cjs';
2
+ export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDProvisionMemberPlan, x as FFIDProvisionMemberPlanStatus, y as FFIDProvisionMemberResult, z as FFIDProvisionMemberStatus, A as FFIDProvisionOrganizationDryRun, B as FFIDProvisionOrganizationMemberInput, C as FFIDProvisionOrganizationOutcome, D as FFIDProvisionOrganizationParams, E as FFIDProvisionOrganizationResponse, G as FFIDProvisionUserDryRun, H as FFIDProvisionUserOutcome, I as FFIDProvisionUserParams, J as FFIDProvisionUserProfileInput, K as FFIDProvisionUserResponse, L as FFIDProvisionedOrganization, M as FFIDProvisionedUser, N as FFIDRemoveMemberResponse, O as FFIDResetSessionResponse, P as FFIDSubscription, Q as FFIDUpdateMemberRoleResponse, R as FFIDUpdateUserProfileRequest, S as FFIDUser, T as FFIDUserProfile, U as TokenData, V as TokenStore, W as createFFIDClient, X as createTokenStore } from '../ffid-client-CEJMpqRZ.cjs';
3
3
  export { D as DEFAULT_API_BASE_URL, a as DEFAULT_OAUTH_SCOPES } from '../constants-D61jqRIO.cjs';
4
4
  import { z } from 'zod';
5
- import '../types-BeVl-z12.cjs';
5
+ import '../types-Cjb9J0rL.cjs';
6
6
 
7
7
  /**
8
8
  * FFID SDK error codes
@@ -1,8 +1,8 @@
1
- import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-Bx8y4SwC.js';
2
- export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDProvisionMemberPlan, x as FFIDProvisionMemberPlanStatus, y as FFIDProvisionMemberResult, z as FFIDProvisionMemberStatus, A as FFIDProvisionOrganizationDryRun, B as FFIDProvisionOrganizationMemberInput, C as FFIDProvisionOrganizationOutcome, D as FFIDProvisionOrganizationParams, E as FFIDProvisionOrganizationResponse, G as FFIDProvisionUserDryRun, H as FFIDProvisionUserOutcome, I as FFIDProvisionUserParams, J as FFIDProvisionUserProfileInput, K as FFIDProvisionUserResponse, L as FFIDProvisionedOrganization, M as FFIDProvisionedUser, N as FFIDRemoveMemberResponse, O as FFIDResetSessionResponse, P as FFIDSubscription, Q as FFIDUpdateMemberRoleResponse, R as FFIDUpdateUserProfileRequest, S as FFIDUser, T as FFIDUserProfile, U as TokenData, V as TokenStore, W as createFFIDClient, X as createTokenStore } from '../ffid-client-Bx8y4SwC.js';
1
+ import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-DM0ZhIDV.js';
2
+ export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDProvisionMemberPlan, x as FFIDProvisionMemberPlanStatus, y as FFIDProvisionMemberResult, z as FFIDProvisionMemberStatus, A as FFIDProvisionOrganizationDryRun, B as FFIDProvisionOrganizationMemberInput, C as FFIDProvisionOrganizationOutcome, D as FFIDProvisionOrganizationParams, E as FFIDProvisionOrganizationResponse, G as FFIDProvisionUserDryRun, H as FFIDProvisionUserOutcome, I as FFIDProvisionUserParams, J as FFIDProvisionUserProfileInput, K as FFIDProvisionUserResponse, L as FFIDProvisionedOrganization, M as FFIDProvisionedUser, N as FFIDRemoveMemberResponse, O as FFIDResetSessionResponse, P as FFIDSubscription, Q as FFIDUpdateMemberRoleResponse, R as FFIDUpdateUserProfileRequest, S as FFIDUser, T as FFIDUserProfile, U as TokenData, V as TokenStore, W as createFFIDClient, X as createTokenStore } from '../ffid-client-DM0ZhIDV.js';
3
3
  export { D as DEFAULT_API_BASE_URL, a as DEFAULT_OAUTH_SCOPES } from '../constants-D61jqRIO.js';
4
4
  import { z } from 'zod';
5
- import '../types-BeVl-z12.js';
5
+ import '../types-Cjb9J0rL.js';
6
6
 
7
7
  /**
8
8
  * FFID SDK error codes
@@ -1221,7 +1221,7 @@ function createNonContractMethods(deps) {
1221
1221
  }
1222
1222
 
1223
1223
  // src/client/version-check.ts
1224
- var SDK_VERSION = "5.21.0";
1224
+ var SDK_VERSION = "5.22.0";
1225
1225
  var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
1226
1226
  var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
1227
1227
  function sdkHeaders() {
@@ -1,5 +1,5 @@
1
- import { k as FFIDClient, e as FFIDOAuthUserInfo } from '../../ffid-client-BQPhm-XL.cjs';
2
- import '../../types-BeVl-z12.cjs';
1
+ import { k as FFIDClient, e as FFIDOAuthUserInfo } from '../../ffid-client-CEJMpqRZ.cjs';
2
+ import '../../types-Cjb9J0rL.cjs';
3
3
 
4
4
  /**
5
5
  * FFID SDK - Test mode client (E2E / integration test bypass)
@@ -1,5 +1,5 @@
1
- import { k as FFIDClient, e as FFIDOAuthUserInfo } from '../../ffid-client-Bx8y4SwC.js';
2
- import '../../types-BeVl-z12.js';
1
+ import { k as FFIDClient, e as FFIDOAuthUserInfo } from '../../ffid-client-DM0ZhIDV.js';
2
+ import '../../types-Cjb9J0rL.js';
3
3
 
4
4
  /**
5
5
  * FFID SDK - Test mode client (E2E / integration test bypass)
@@ -56,7 +56,8 @@ declare const EFFECTIVE_SUBSCRIPTION_STATUSES: readonly ["active", "active_cance
56
56
  * `src/lib/common/subscription-helpers.ts`, and a server-side unit test pins
57
57
  * element-equality between the two arrays (#3474) — convention-only sync
58
58
  * could drift silently in the server-extending direction (a new server
59
- * literal would fall through SDK consumers' `switch` defaults).
59
+ * literal would fall through SDK consumers' `switch` defaults). The PR gate also
60
+ * runs `npm run sdk:verify-sync` for SDK/server subscription changes.
60
61
  */
61
62
  type EffectiveSubscriptionStatus = (typeof EFFECTIVE_SUBSCRIPTION_STATUSES)[number];
62
63
 
@@ -56,7 +56,8 @@ declare const EFFECTIVE_SUBSCRIPTION_STATUSES: readonly ["active", "active_cance
56
56
  * `src/lib/common/subscription-helpers.ts`, and a server-side unit test pins
57
57
  * element-equality between the two arrays (#3474) — convention-only sync
58
58
  * could drift silently in the server-extending direction (a new server
59
- * literal would fall through SDK consumers' `switch` defaults).
59
+ * literal would fall through SDK consumers' `switch` defaults). The PR gate also
60
+ * runs `npm run sdk:verify-sync` for SDK/server subscription changes.
60
61
  */
61
62
  type EffectiveSubscriptionStatus = (typeof EFFECTIVE_SUBSCRIPTION_STATUSES)[number];
62
63
 
@@ -1,4 +1,4 @@
1
- import { E as EffectiveSubscriptionStatus } from '../types-BeVl-z12.cjs';
1
+ import { E as EffectiveSubscriptionStatus } from '../types-Cjb9J0rL.cjs';
2
2
 
3
3
  /**
4
4
  * FFID Webhook SDK Constants
@@ -1,4 +1,4 @@
1
- import { E as EffectiveSubscriptionStatus } from '../types-BeVl-z12.js';
1
+ import { E as EffectiveSubscriptionStatus } from '../types-Cjb9J0rL.js';
2
2
 
3
3
  /**
4
4
  * FFID Webhook SDK Constants
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feelflow/ffid-sdk",
3
- "version": "5.21.0",
3
+ "version": "5.22.0",
4
4
  "description": "FeelFlow ID Platform SDK for React/Next.js applications",
5
5
  "keywords": [
6
6
  "feelflow",