sidebase / nuxt-auth

Authentication built for Nuxt 3! Easily add authentication via OAuth providers, credentials or Email Magic URLs!
https://auth.sidebase.io
MIT License
1.33k stars 164 forks source link

How to change refresh() Header Bearer Token to Bearer Refresh Token ? #905

Open geofany opened 2 months ago

geofany commented 2 months ago

Describe the feature

How to change refresh() Header Bearer Token to Bearer Refresh Token ?

Screenshot 2024-09-10 at 14 45 47

i need to change Header Bearer Token to Bearer Refresh Token

How would you implement this?

No response

Additional information

Provider

phoenix-ru commented 2 months ago

What exactly do you want?.. Authorization header of refresh includes the Access token, and Refresh Token should be in the body

geofany commented 2 months ago

What exactly do you want?.. Authorization header of refresh includes the Access token, and Refresh Token should be in the body

My backend team places the refresh token in the Authorization header, instead of in the body.

phoenix-ru commented 1 week ago

I don't think we can support custom placements in local provider at the moment. I attempted to create a hook-based data extraction/manipulation for the local provider, but the complexity greatly outweighs advantages gained. Perhaps we'll revisit it later.

At the moment I can't recommend you using the stock module. You can patch it to suit your usecase or create your own authentication