File tree 2 files changed +3
-3
lines changed
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):
276
276
def cookie_max_age (self ):
277
277
# Returns the appropiate value for max_age for flask set_cookies. If
278
278
# 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
281
281
282
282
@property
283
283
def identity_claim_key (self ):
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ class CustomJSONEncoder(JSONEncoder):
162
162
assert config .blacklist_access_tokens is False
163
163
assert config .blacklist_refresh_tokens is True
164
164
165
- assert config .cookie_max_age == 2147483647
165
+ assert config .cookie_max_age == 31540000
166
166
167
167
assert config .identity_claim_key == 'foo'
168
168
assert config .user_claims_key == 'bar'
You can’t perform that action at this time.
0 commit comments