Skip to content

Conversation

domsen123
Copy link

the method verifyIdToken throws an error, if token can't be verified.

So we have to handle this, instead of if-else.

the method *verifyIdToken* throws an error, if token can't be verified
@posva
Copy link
Member

posva commented Aug 27, 2024

We should indeed probably try catch this. Do you know when this method can throw an error? Depending on the error, it could also be better to propagate it

@domsen123
Copy link
Author

it can throw an error when the token was revoked before (error.code === 'auth/id-token-revoked')

as the verification is part of the plugin "./runtime/auth/plugin-mint-cookie.client.ts", I dont know, where we can propagate it to the client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants