Reputation: 5056
I'm using djangorestframework-jwt and I can authenticate just fine, but I'm having some trouble staying authenticated. I get a "Signature has expired."
error after ~5m or so.
Am I just using it wrong? My assumption was that I'd pass it the token for every request and that'd keep me authenticated. Logging out would just mean forgetting the token.
What am I missing here?
Upvotes: 1
Views: 4058
Reputation: 7088
Documentation says that the default expiration delta is 5 minutes. See JWT_EXPIRATION_DELTA
setting. The framework seems to assume that you want to implement token refresh.
Upvotes: 2