fix: Make don't create and save new refresh token with None when refr…#634
fix: Make don't create and save new refresh token with None when refr…#634juchajam wants to merge 1 commit into
Conversation
…esh token is not included in the request.
|
Sorry I don't understand the intent of this change. Can you explain it in very simple terms? The grammar of your PR title is confusing. |
Sorry for my bad English. When USE_JWT is True and logout without refresh token, response.status_code will be 401. And create new refresh token and blacklist it. |
|
I think I can see a couple code paths which would indeed cause trouble, all requiring that
In all these cases, a new token is being blacklisted. This indeed shouldn't happen. The proposed PR fixes all of the above, as far as I can tell. A bit further down (outside of the current scope of the PR), there are some changes needed as well to cope with newer versions of |
|
@iMerica Does the above answer your question? |
fix: Make don't create and save new refresh token with None when refresh token is not included in the request.