0๐
If you are talking about the User Activation Email Link.
A simple answer would be yes and just add the below in your setting.
PASSWORD_RESET_TIMEOUT = 60 # in second
So what is happening is Djoser uses Django password reset functionality while generating and validating the token. So if that is the case Django already has a time out for the password reset value so you can set the above value but one catch is you will get the below error if the token is expired instead of a timeout validation error.
{
"token": [
"Invalid token for given user."
]
}
Tested on my machine and it is working fine. Hope this helps.
๐คChapi Menge
-1๐
SIMPLE_JWT = {
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=5),
'REFRESH_TOKEN_LIFETIME': timedelta(minutes=360),
}
Check out the simplejwt docs : click here
๐คcarmel26
- [Django]-How to reload Django models without losing my locals in an interactive session?
- [Django]-Celery periodic task doesn't start
- [Django]-Unable to override django-allauth templates
- [Django]-Django ModelChoiceField allow objects creation
Source:stackexchange.com