You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [unreleased]
9
9
10
+
## [0.22.0] - 2024-06-24
11
+
12
+
### Breaking change
13
+
14
+
- The access token cookie expiry has been changed from 100 years to 1 year due to some browsers capping the maximum expiry at 400 days. No action is needed on your part.
// We set the expiration to 100 years, because we can't really access the expiration of the refresh token everywhere we are setting it.
328
+
// We set the expiration to 1 year, because we can't really access the expiration of the refresh token everywhere we are setting it.
329
329
// This should be safe to do, since this is only the validity of the cookie (set here or on the frontend) but we check the expiration of the JWT anyway.
330
330
// Even if the token is expired the presence of the token indicates that the user could have a valid refresh
331
-
// Setting them to infinity would require special case handling on the frontend and just adding 100 years seems enough.
331
+
// Some browsers now cap the maximum expiry at 400 days, so we set it to 1 year, which should suffice.
// We set the expiration to 100 years, because we can't really access the expiration of the refresh token everywhere we are setting it.
335
+
// We set the expiration to 1 year, because we can't really access the expiration of the refresh token everywhere we are setting it.
336
336
// This should be safe to do, since this is only the validity of the cookie (set here or on the frontend) but we check the expiration of the JWT anyway.
337
337
// Even if the token is expired the presence of the token indicates that the user could have a valid refresh
338
-
// Setting them to infinity would require special case handling on the frontend and just adding 100 years seems enough.
338
+
// Some browsers now cap the maximum expiry at 400 days, so we set it to 1 year, which should suffice.
0 commit comments