cal/packages
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
..
app-store perf: remove sentry (#8334) 2023-04-17 22:22:44 +00:00
app-store-cli Refactor app store & fix admin apps list bugs (#7812) 2023-04-11 18:56:43 -07:00
config fix: remove line-clamp from plugins (#8309) 2023-04-16 23:05:44 +02:00
core avoid get error when a user has no schedule defined in getUserAvailability function (#8170) 2023-04-13 18:26:45 +00:00
dayjs Techdebt/bundle size experiments (#7894) 2023-03-23 11:49:28 -07:00
emails feat: add isRecordingExist field and create api handler (#6777) 2023-04-13 19:07:10 +00:00
embeds Feat: Support setting custom css variables through embed API. (#8169) 2023-04-13 18:26:31 +00:00
eslint-plugin Upgrades yarn v1 to v3. Improves CI times by 2x (#7738) 2023-03-15 15:01:04 -07:00
features perf: use getSlimServerSession for session retrieval (#8308) 2023-04-17 23:48:00 +00:00
lib Fix/Keep themes in peace across embed and booking pages and App (#8108) 2023-04-17 17:46:54 +05:30
prisma fixed yarn dx (#8293) 2023-04-15 11:48:44 +00:00
trpc perf: replace `notIn` with `equals` on booking (#8303) 2023-04-17 16:54:14 -03:00
tsconfig We're not ready for this yet 2022-11-22 20:02:40 -07:00
types perf: use getSlimServerSession for session retrieval (#8308) 2023-04-17 23:48:00 +00:00
ui chore: UI username RTL (#8300) 2023-04-16 19:35:17 +00:00