cloudflare-next-intl 0.6.25 → 0.6.26
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,9 +4,9 @@ import type { FirebaseAppCheckConfig } from '../../types/types';
|
|
|
4
4
|
* when the client-written App Check cookie (see `appCheckTokenCookieName`)
|
|
5
5
|
* is absent — e.g. a cold navigation before `AuthUserProvider` has run and
|
|
6
6
|
* had a chance to write it. Requires `clientEmail`/`privateKey`/`appId` on
|
|
7
|
-
* `firebaseAuth.appCheck`; returns `undefined` (never throws) if
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* `firebaseAuth.appCheck`; returns `undefined` (never throws) if the
|
|
8
|
+
* exchange fails, so a caller can always fall back to "no App Check token"
|
|
9
|
+
* exactly as before this existed.
|
|
10
10
|
*
|
|
11
11
|
* Signs a short-lived custom JWT with the service account's private key
|
|
12
12
|
* (`jose`, Edge/WebCrypto-compatible — no `firebase-admin`), then exchanges
|
|
@@ -7,9 +7,9 @@ const DEFAULT_CUSTOM_TOKEN_LIFETIME = '1h';
|
|
|
7
7
|
* when the client-written App Check cookie (see `appCheckTokenCookieName`)
|
|
8
8
|
* is absent — e.g. a cold navigation before `AuthUserProvider` has run and
|
|
9
9
|
* had a chance to write it. Requires `clientEmail`/`privateKey`/`appId` on
|
|
10
|
-
* `firebaseAuth.appCheck`; returns `undefined` (never throws) if
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* `firebaseAuth.appCheck`; returns `undefined` (never throws) if the
|
|
11
|
+
* exchange fails, so a caller can always fall back to "no App Check token"
|
|
12
|
+
* exactly as before this existed.
|
|
13
13
|
*
|
|
14
14
|
* Signs a short-lived custom JWT with the service account's private key
|
|
15
15
|
* (`jose`, Edge/WebCrypto-compatible — no `firebase-admin`), then exchanges
|
|
@@ -575,13 +575,11 @@ export interface FirebaseAppCheckConfig {
|
|
|
575
575
|
* Service account client email, used ONLY server-side to mint an App
|
|
576
576
|
* Check token when the client-written App Check cookie is absent (e.g.
|
|
577
577
|
* a cold navigation before `AuthUserProvider` has run — see
|
|
578
|
-
* `appCheckTokenCookieName`).
|
|
579
|
-
* `
|
|
580
|
-
*
|
|
581
|
-
* client — read only by `firebase_server.ts`. Required alongside
|
|
582
|
-
* `privateKey` and `appId` for minting to activate.
|
|
578
|
+
* `appCheckTokenCookieName`). Required alongside `privateKey` and
|
|
579
|
+
* `appId` for server-side minting. Never sent to the client — read only
|
|
580
|
+
* by `firebase_server.ts`.
|
|
583
581
|
*/
|
|
584
|
-
clientEmail
|
|
582
|
+
clientEmail: string;
|
|
585
583
|
/**
|
|
586
584
|
* Service account private key (PEM), paired with `clientEmail` for
|
|
587
585
|
* server-side App Check token minting. Same server-only, secret-bearing
|
|
@@ -590,14 +588,14 @@ export interface FirebaseAppCheckConfig {
|
|
|
590
588
|
* browser. Escaped `\n` sequences (common when stored in a single-line
|
|
591
589
|
* env var) are unescaped automatically before use.
|
|
592
590
|
*/
|
|
593
|
-
privateKey
|
|
591
|
+
privateKey: string;
|
|
594
592
|
/**
|
|
595
593
|
* Firebase App Check app ID (e.g. `"1:1234567890:web:abcdef123456"`),
|
|
596
594
|
* required alongside `clientEmail`/`privateKey` for server-side minting.
|
|
597
595
|
* Distinct from the Firebase Auth `appId` on `FirebaseAuthRoutingConfig`
|
|
598
596
|
* itself — App Check registers apps separately.
|
|
599
597
|
*/
|
|
600
|
-
appId
|
|
598
|
+
appId: string;
|
|
601
599
|
/**
|
|
602
600
|
* Lifetime of the custom JWT signed for the `exchangeCustomToken`
|
|
603
601
|
* server-side mint, as a `jose` `setExpirationTime` duration string
|