Open rlam3 opened 8 years ago
From the docs:
JWT_EXPIRATION_DELTA - A
datetime.timedelta
value indicating how long tokens are valid for. This value is added to the iat (issued at) claim. Defaults totimedelta(seconds=300)
Check your clock.
@dequis Thanks. So this is based on UTC time correct? Not on my machine's. Also another question is, what is the recommended time delta for the expiration? How often should there be the user need a new token?
view flask-jwt, i see this line.
iat = datetime.utcnow()
@stone7890 Thanks! Do you know if we should be storing these jwt in a backend? And also, about how long should a jwt expire?
What is the timezone / jwt expiration that is being passed into the token?
I'm having trouble with validating the expiration date on a swift app end. The swift app side says it is expired even when it was just recently updated.