Skip to content

Commit aac88c6

Browse files
committed
fixed example code
1 parent 868f0c7 commit aac88c6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

example/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Auth, emulatorHost, Env } from "../src";
1+
import { Auth, emulatorHost, Env, WorkersKVStoreSingle } from "../src";
22

33
interface Bindings extends Env {
44
EMAIL_ADDRESS: string
@@ -39,8 +39,7 @@ export async function handleRequest(req: Request, env: Bindings) {
3939
const jwt = authorization.replace(/Bearer\s+/i, "")
4040
const auth = Auth.getOrInitialize(
4141
env.PROJECT_ID,
42-
env.PUBLIC_JWK_CACHE_KEY,
43-
env.PUBLIC_JWK_CACHE_KV
42+
WorkersKVStoreSingle.getOrInitialize(env.PUBLIC_JWK_CACHE_KEY, env.PUBLIC_JWK_CACHE_KV)
4443
)
4544
const firebaseToken = await auth.verifyIdToken(jwt, env)
4645

0 commit comments

Comments
 (0)