File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -276,8 +276,8 @@ def _private_key(self):
276276 def cookie_max_age (self ):
277277 # Returns the appropiate value for max_age for flask set_cookies. If
278278 # session cookie is true, return None, otherwise return a number of
279- # seconds a long ways in the future
280- return None if self .session_cookie else 2147483647 # 2^31
279+ # seconds 1 year in the future
280+ return None if self .session_cookie else 31540000 # 1 year
281281
282282 @property
283283 def identity_claim_key (self ):
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ class CustomJSONEncoder(JSONEncoder):
162162 assert config .blacklist_access_tokens is False
163163 assert config .blacklist_refresh_tokens is True
164164
165- assert config .cookie_max_age == 2147483647
165+ assert config .cookie_max_age == 31540000
166166
167167 assert config .identity_claim_key == 'foo'
168168 assert config .user_claims_key == 'bar'
You can’t perform that action at this time.
0 commit comments