You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to send custom headers when nuxt sends a request to the refresh endpoint. Why?
Besides sidebase-auth, applications might be protected by Basic Auth (especially during development or staging areas).
Side note:
while /refresh does not send the Basic Auth header i setup for my regular api-calls, /getSession does. not sure why.
Would this be of interest? Or is there already a way to achieve this (besides configuring web server setup)?
How would you implement this?
Something like this would be sufficient, although a hook/callback might be more flexible:
Hi @n0-m4d , adding hooks for all the methods has been a feature many people anticipate and I personally want to implement.
I did an initial prototype a couple months ago already and wasn't satisfied by it. I would definitely come back to it in the next year, probably for the next minor release even if nothing else pops up 🙂
Describe the feature
I'd like to be able to send custom headers when nuxt sends a request to the refresh endpoint.
Why?
Besides sidebase-auth, applications might be protected by Basic Auth (especially during development or staging areas).
Side note:
while /refresh does not send the Basic Auth header i setup for my regular api-calls, /getSession does. not sure why.
Would this be of interest? Or is there already a way to achieve this (besides configuring web server setup)?
How would you implement this?
Something like this would be sufficient, although a hook/callback might be more flexible:
(I replaced the default
token.headerName
with another header name).Additional information
Provider
The text was updated successfully, but these errors were encountered: