devbaji/vue3-google-login

How to renew a token if it expires ?

Closed this issue · 1 comments

Seraf commented

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

Closed as duplicate of #22