Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 5 tasks
geofany opened this issue Sep 10, 2024 · 3 comments
Open
1 of 5 tasks
Labels
enhancement An improvement that needs to be added provider-local An issue with the local provider

Comments

@geofany
Copy link

geofany commented Sep 10, 2024

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

  • Would you be willing to help implement this feature?

Provider

  • AuthJS
  • Local
  • Refresh
  • New Provider
@geofany geofany added enhancement An improvement that needs to be added pending An issue waiting for triage labels Sep 10, 2024
@phoenix-ru
Copy link
Collaborator

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

@geofany
Copy link
Author

geofany commented Sep 13, 2024

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.

@zoey-kaiser zoey-kaiser added provider-local An issue with the local provider and removed pending An issue waiting for triage labels Oct 9, 2024
@phoenix-ru
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement that needs to be added provider-local An issue with the local provider
Projects
None yet
Development

No branches or pull requests

3 participants