You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cf3e76a
Browse filesBrowse the repository at this point in the historyBrowse files
fix: address review feedback on Next.js middleware PR
- Move jose from devDependencies to dependencies (runtime dep)
- Strip API key from refresh error log (log origin+pathname only)
- Fix exp=0 falsy guard (use !== undefined)
- Release JWKS eviction lock on fetch error (add cacheDelete + try/finally)
- Return 400 for malformed finalTarget URL instead of throwing TypeError
- Fill in empty error message in composeMiddleware config guard
- Align tenantId docs to string-only (function form deferred)
- Add del() to CacheProvider interface and MemoryCacheProvider
- Annotate @firebase/util and _AuthEmulatorRefreshToken as internal/fragile
- Remove self-referential PR comment and resolved TODO
- Centralize createToken test helper in middleware_test_utils.ts
Copy file name to clipboardExpand all lines: src/nextjs/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ Creates a composable Next.js middleware handler that verifies cookies and manage
122
122
| :--- | :--- | :--- |
123
123
|**`options`**|`FirebaseOptions`| Standard Firebase configuration object (`apiKey`, `projectId`, `authDomain`). |
124
124
|**`appName`**|`string`| Name of the Firebase app instance. Defaults to `"[DEFAULT]"`. |
125
-
|**`tenantId`**|`string \| ((req: NextRequest) => string \| Promise<string>)`| Google Cloud Identity Platform tenant ID, or a function resolving the tenant dynamically per request. |
125
+
|**`tenantId`**|`string`| Google Cloud Identity Platform tenant ID. |
126
126
|**`emulator`**|`boolean \| string`| Whether to use the Firebase Auth Emulator. If `true`, reads host from `FIREBASE_AUTH_EMULATOR_HOST`. |
127
127
|**`cache`**|`CacheProvider`| Optional custom caching store (e.g. Memorystore, Redis, Vercel KV, Cloudflare KV) for token validation and JWKS caching. Defaults to an in-memory `LRUCache`. |
if(!normalizedConfigurations.length)thrownewError("composeMiddleware requires at least one configuration. Pass a Config object or array of Config objects.");
0 commit comments