awinogrodzki/next-firebase-auth-edge

Invalid argument: idToken has incorrect "iss" (issuer) claim. Expected https://securetoken.google.com/undefined

harshmathurx opened this issue · 3 comments

Facing this error
Invalid argument: idToken has incorrect "iss" (issuer) claim. Expected https://securetoken.google.com/undefined, but got https://securetoken.google.com/

most likely your project id is undefined

Hey @harshmathurx,

As @huangfulei suggested, please check if you pass correct serviceAccount.projectId value to authMiddleware and getTokens

That fixed it. Thanks a ton for the reply