-
Notifications
You must be signed in to change notification settings - Fork 682
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
AttributeError: type object 'OutstandingToken' has no attribute 'objects' #875
Comments
@amirhakimnejad I had the same problem, I solved it by adding in the test settings_test.py in the installed apps section
|
As per the documentation for the BLACKLIST_AFTER_ROTATION setting
I have BLACKLIST_AFTER_ROTATION set to False and I didn't include "rest_framework_simplejwt.token_blacklist" in my INSTALLED_APPS, but I am still getting this error. I checked serializers.py file and I believe that this commit caused it because the code is calling refresh.outstand() regardless of the BLACKLIST_AFTER_ROTATION value.
|
My solution today was downgrading the version to 5.4.0. |
I have updated my simplejwt to 5.5.0
My refresh token test refused to pass with the following info:
Error:
The text was updated successfully, but these errors were encountered: