flavors / django-graphql-jwt

JSON Web Token (JWT) authentication for Graphene Django
https://django-graphql-jwt.domake.io
MIT License
820 stars 172 forks source link

only Refresh access token with graphql_jwt.Refresh.Field() #333

Open megamind400 opened 5 months ago

megamind400 commented 5 months ago

as i understand using the Refresh token i can gain a new Access token, but using the built-in graphql_jwt.Refresh.Field() in my mutation, upon each query a new refresh token is also created with a new expiry date, which renders 'JWT_REFRESH_EXPIRATION_DELTA': timedelta(days=5), meaningless, so by logging in once you can stay logged in forever

how can i get a new access token without also renewing the Refresh Token?