* 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>
* Fix passThrough console error (passHref is not valid)
* Fix 'use-identity-login' error when logging in with idP
---------
Co-authored-by: Keith Williams <keithwillcode@gmail.com>
* feat(web): improve session retrieval performance
Switch to using `getServerSession` which avoids a HTTP round trip to retrieve session details.
Additionally, migrate deprecated `app/lib/auth` calls to to `@calcom/lib` package.
* fix: update failing test and lint
* Consolidates auth code in features
* Update yarn.lock
* Update packages/trpc/server/createContext.ts
* Oopsie
---------
Co-authored-by: zomars <zomars@me.com>