feat(web): improve session retrieval performance (#7584)

* 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 <[email protected]>
This commit is contained in:
Lucas Smithandzomars authored and GitHub committed 2023-03-10 23:45:24 +00:00
1 parent d81d772cdf
commit 2317473545
61 files changed
+1034 -956

No files matched your search

+4
View File
@@ -1,3 +1,7 @@
/**
* !: Stops the `jose` dependency from bundling the browser version and breaking tests
* @jest-environment node
*/
import type {
EventType as PrismaEventType,
User as PrismaUser,