Closed kwagdy closed 11 months ago
That option sets the exp
data in the JWT itself. If you want to set the max_age
on a cookie, you should use the max_age
option on the set_access_cookies
and set_refresh_cookies
API calls.
You are correct, thank you! Sorry I missed it in the docs. Also thank you for making this library! It has been very useful πππ
You are welcome! Glad itβs helping π
Hello, I am trying to set the refresh token cookies expiration time by setting the option, but is keeps being set to a year ahead!
app.config['JWT_REFRESH_TOKEN_EXPIRES'] = datetime.timedelta(hours=12)
jwt = JWTManager(app)