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

+1 -1
View File
@@ -87,7 +87,7 @@
"micro": "^10.0.1",
"mime-types": "^2.1.35",
"next": "^13.2.1",
"next-auth": "^4.18.8",
"next-auth": "^4.20.1",
"next-axiom": "^0.16.0",
"next-collect": "^0.2.1",
"next-i18next": "^11.3.0",