I use Django GraphQL JWT. Then, I could set the expiry time for Access Token and Refresh Token in "settings.py" as shown below:
# "settings.py"
from datetime import timedelta
GRAPHQL_JWT = {
"JWT_VERIFY_EXPIRATION": True,
"JWT_LONG_RUNNING_REFRESH_TOKEN": True,
"JWT_EXPIRATION_DELTA": timedelta(minutes=60), # For "Access Token"
"JWT_REFRESH_EXPIRATION_DELTA": timedelta(days=180), # For "Refresh Token"
}
Now, I want to ask:
What are the default expiry time for Access Token and Refresh Token in Django GraphQL JWT?
The default expiry time in Django GraphQL JWT are:
"JWT_EXPIRATION_DELTA": timedelta(minutes=5)
"JWT_REFRESH_EXPIRATION_DELTA": timedelta(days=7)