We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 868f0c7 commit aac88c6Copy full SHA for aac88c6
example/index.ts
@@ -1,4 +1,4 @@
1
-import { Auth, emulatorHost, Env } from "../src";
+import { Auth, emulatorHost, Env, WorkersKVStoreSingle } from "../src";
2
3
interface Bindings extends Env {
4
EMAIL_ADDRESS: string
@@ -39,8 +39,7 @@ export async function handleRequest(req: Request, env: Bindings) {
39
const jwt = authorization.replace(/Bearer\s+/i, "")
40
const auth = Auth.getOrInitialize(
41
env.PROJECT_ID,
42
- env.PUBLIC_JWK_CACHE_KEY,
43
- env.PUBLIC_JWK_CACHE_KV
+ WorkersKVStoreSingle.getOrInitialize(env.PUBLIC_JWK_CACHE_KEY, env.PUBLIC_JWK_CACHE_KV)
44
)
45
const firebaseToken = await auth.verifyIdToken(jwt, env)
46
0 commit comments