cal.pub0.org/packages/features/auth
Lucas Smith 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
..
lib perf: use getSlimServerSession for session retrieval (#8308) 2023-04-17 23:48:00 +00:00
PermissionContainer.tsx Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
README.md Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
SAMLLogin.tsx Replace react icons with lucidedev (#8146) 2023-04-12 17:26:31 +02:00
package.json Upgrades yarn v1 to v3. Improves CI times by 2x (#7738) 2023-03-15 15:01:04 -07:00

README.md

Auth-related code will live here