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

The /auth/refresh endpoint return 401 requests with expired accessToken #2

Open
li6in9muyou opened this issue Jun 3, 2023 · 0 comments

Comments

@li6in9muyou
Copy link

/auth/refresh endpoint doc is at https://jwt-auth-proxy.readthedocs.io/en/latest/user-facing/#refresh-access-token

Refresh endpoint is for obtaining a valid accessToken with an expired accessToken and a valid refreshToken.

To reproduce

  1. obtain an accessToken and refreshToken pair through login
  2. wait until accessToken is expired
  3. send refresh request

Expected behavior

The server returns a valid accessToken

Actual behavior

The server returns 401

Possible cause

Refresh requests go through a expiration check during VerifyJwtMiddleware function.

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

1 participant