Hi there,
Great module first of all!
We are looking for using nuxt-firebase to replace our custom logic + firebase package. I have read the document and played around.
Can you please help here?
let's say the app is configured as service worker + SSR: true
- We got the user idToken from nuxtServerInt or authstateChanged action, configured the token as Axios authorization header
- the user works on the page for more than 1 hour (the id token apparently is expired)
- user click button to send CURD request to our server middleware (or same-origin backend) via Axios (/api/**)
Is there a possibility service worker or nuxt-firebase to auto-detect & auto-refresh the id token in the request header? I only see it auto-inject in HTML page
Many thanks