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 am trying to set a Bearer token that I only obtain server-side after module initialization, so any nuxt.config.ts options are definitely not an option.
In order to be able to take advantage of the client side composable and not have to redefine all my endpoints on the server side solely to redo what runtime/server/handler.ts already does I think I might need a hook of some sort that I can use to modify the proxied requests headers on server side just before sending the request to the backend api.
any pointers on this matter are very welcomed!
Additional information
Would you be willing to help implement this feature?
Can you think of other implementations of this feature?
I need to pass my Authorization header in based on the value of the token from useAuth at runtime but there doesn't seem to be any way of doing this. I've tried passing it in every onRequest method (which would not be ideal but I wanted to see if it would work) but it doesn't seem to allow it.
Describe the feature
I am trying to set a Bearer token that I only obtain server-side after module initialization, so any
nuxt.config.ts
options are definitely not an option.In order to be able to take advantage of the client side composable and not have to redefine all my endpoints on the server side solely to redo what
runtime/server/handler.ts
already does I think I might need a hook of some sort that I can use to modify the proxied requests headers on server side just before sending the request to the backend api.any pointers on this matter are very welcomed!
Additional information
Final checks
The text was updated successfully, but these errors were encountered: