cal.pub0.org/packages/features/auth/lib
Lucas Smith 2317473545
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 <zomars@me.com>
2023-03-10 23:45:24 +00:00
..
ErrorCode.ts feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
ensureSession.ts feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
getServerSession.ts feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
getSession.ts feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
hashPassword.ts feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
identityProviderNameMap.ts feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
isPasswordValid.ts feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
next-auth-custom-adapter.ts feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
next-auth-options.ts feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
validPassword.ts feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
verifyPassword.ts feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00