You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, there could also be a use case where user want to set a non-expiring token with TOKEN_TTL=None, but also have a token limit with TOKEN_LIMIT_PER_USER=X.
Could this be possible?
The text was updated successfully, but these errors were encountered:
According to the logic in the
post()
method in https://github.com/James1345/django-rest-knox/blob/develop/knox/views.pyIf a user set the
TOKEN_LIMIT_PER_USER
, the token must have a expiry timestamp greater than current time.However, there could also be a use case where user want to set a non-expiring token with
TOKEN_TTL=None
, but also have a token limit withTOKEN_LIMIT_PER_USER=X
.Could this be possible?
The text was updated successfully, but these errors were encountered: