vuefire icon indicating copy to clipboard operation
vuefire copied to clipboard

fix: session verification

Open domsen123 opened this issue 1 year ago • 2 comments

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

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

domsen123 avatar Aug 27 '24 08:08 domsen123

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

posva avatar Aug 27 '24 08:08 posva

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.

domsen123 avatar Aug 27 '24 14:08 domsen123