Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: session verification #1571

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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