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

refresh token format #1

Open
piyushjangid11111 opened this issue Sep 12, 2023 · 3 comments
Open

refresh token format #1

piyushjangid11111 opened this issue Sep 12, 2023 · 3 comments

Comments

@piyushjangid11111
Copy link

cannot authorize refresh token . i will get error 401 Unauthorized . invalid bearer token .
convert your refresh token in jwt bearer format

@haithamabass
Copy link
Owner

can you please explain more about the issue you faced to help you?

@piyushjangid11111
Copy link
Author

can you please explain more about the issue you faced to help you?

i am able to use my jwt token to authorize controller but when i use refresh token it gives error that refresh token is not in bearer format please convert refresh token also in bearer format so i can use it

@haithamabass
Copy link
Owner

did you use the GenerateRefreshToken method at (Infrastructure/Identity/Services/AuthResponseService.cs) line 86?

it's used in the SignUp method to provide the new user with a RefreshToken and in the Login method if the RefreshToken that the user has is not active, therefore you are logged out automatically and then get error 401 Unauthorized, so you have to log in again

ekeneamah pushed a commit to ekeneamah/WebApi_CleanArchitecture that referenced this issue Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants