devbaji / vue3-google-login

Add Sign In With Google feature to your Vue 3 application
https://github.com/devbaji/vue3-google-login/
MIT License
202 stars 30 forks source link

How to renew a token if it expires ? #67

Closed Seraf closed 4 weeks ago

Seraf commented 1 month ago

Hello,

First, thanks for this plugin, it's really plug and play and working really well !

I made everything working except this: I log in, store the credential in the state etc as I will use it for my Authorization header when contacting the backend but after an hour, the token expire (the famoux exp field).

Is there a method to call to do a silent renew if I intercept a 401 ? How do you handle it ?

Thanks

Seraf commented 4 weeks ago

Closed as duplicate of #22