cloudflare-next-intl 0.6.21 → 0.6.22

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.
@@ -4,7 +4,8 @@ import requireFirebaseAuthConfig from '../require_config';
4
4
  async function initializeFirebaseAppCheck(app, appCheckConfig) {
5
5
  const { initializeAppCheck, ReCaptchaV3Provider, ReCaptchaEnterpriseProvider } = await import('firebase/app-check');
6
6
  if (appCheckConfig.debugToken) {
7
- globalThis.FIREBASE_APPCHECK_DEBUG_TOKEN = true;
7
+ globalThis.FIREBASE_APPCHECK_DEBUG_TOKEN =
8
+ appCheckConfig.debugToken;
8
9
  }
9
10
  const provider = appCheckConfig.recaptchaEnterpriseSiteKey
10
11
  ? new ReCaptchaEnterpriseProvider(appCheckConfig.recaptchaEnterpriseSiteKey)
@@ -544,12 +544,15 @@ export interface FirebaseAppCheckConfig {
544
544
  /** reCAPTCHA Enterprise site key. Mutually exclusive with `recaptchaV3SiteKey`. */
545
545
  recaptchaEnterpriseSiteKey?: string;
546
546
  /**
547
- * Enables App Check's debug token on this client (sets
548
- * `self.FIREBASE_APPCHECK_DEBUG_TOKEN = true` before init, which logs a
549
- * token to the console to register in the Firebase console). Use only
550
- * for local development never set `true` in production.
551
- */
552
- debugToken?: boolean;
547
+ * Enables App Check's debug token on this client. Pass `true` to have
548
+ * the Firebase SDK generate a new random token each run (logged to the
549
+ * console register it in the Firebase console every time it changes).
550
+ * Pass a fixed UUID string instead to reuse the same token across
551
+ * restarts/builds — set `self.FIREBASE_APPCHECK_DEBUG_TOKEN` to it
552
+ * before init, register that one UUID once, and it never changes.
553
+ * Use only for local development — never set this in production.
554
+ */
555
+ debugToken?: boolean | string;
553
556
  /** Forwarded to `initializeAppCheck`'s `isTokenAutoRefreshEnabled`. Defaults to `true`. */
554
557
  isTokenAutoRefreshEnabled?: boolean;
555
558
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudflare-next-intl",
3
- "version": "0.6.21",
3
+ "version": "0.6.22",
4
4
  "description": "Optimized Next Intl Package Special for App Router and Cloudflare",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",