Files
calendar/packages/features
e5eb7c3906 perf: use getSlimServerSession for session retrieval (#8308)
* perf: use getSlimServerSession for session retrieval

Creates a new `getSlimServerSession` method and replaces all calls to `getServerSession`.

The new method is much faster than `getServerSession` with it not requiring the NextAuth options object which includes a number of additional packages.

Additionally introduces a primitive in-memory cache for slim sessions.

* fix: account for seconds in token.exp

* Reverts diffs

* Replaces getServerSession with slimmer version

* Update disable.ts

---------

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Keith Williams <keithwillcode@gmail.com>
Co-authored-by: zomars <zomars@me.com>
2023-04-17 23:48:00 +00:00
..
2022-07-28 13:58:26 -06:00
2023-04-14 17:04:48 -07:00
2023-04-12 23:10:23 -03:00
2023-04-15 11:48:44 +00:00
2022-07-28 13:58:26 -06:00
2023-04-13 10:34:44 +01:00
2023-04-12 23:10:23 -03:00
2022-07-28 13:58:26 -06:00
2023-03-23 22:10:01 +00:00
2022-07-28 13:58:26 -06:00