From 458c14215211f4963efe1d270cc22df420bf3755 Mon Sep 17 00:00:00 2001 From: Joe Karow <58997957+JoeKarow@users.noreply.github.com> Date: Mon, 22 Apr 2024 10:08:53 -0400 Subject: [PATCH] fix type error --- packages/auth/lib/cognitoJwt.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/auth/lib/cognitoJwt.ts b/packages/auth/lib/cognitoJwt.ts index 152bb4753c..e1c52d3604 100644 --- a/packages/auth/lib/cognitoJwt.ts +++ b/packages/auth/lib/cognitoJwt.ts @@ -43,11 +43,11 @@ const IdTokenSchema = z .passthrough() export const decodeCognitoIdJwt = async (jwt: string) => { - const data = await verifier('id').verify(jwt) + const data = await verifier('id').verify(jwt, { clientId: getEnv('COGNITO_CLIENT_ID') }) return IdTokenSchema.parse(data) } export const decodeCognitoAccessJwt = async (jwt: string) => { - const data = await verifier('access').verify(jwt) + const data = await verifier('access').verify(jwt, { clientId: getEnv('COGNITO_CLIENT_ID') }) return AccessTokenSchema.parse(data) }