cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

[CAL-1514] Set the user session only on the endpoints where it is needed.

Open roae opened this issue 1 year ago • 0 comments

Currently the session is set in the default context of tRPC, this adds the session dependencies to all endpoints. Perhaps, the getServerSession function should be run only in AuthedProcedure, or add SessionProcedure that is in charge of setting the session in the context, in the endpoints where it is necessary.

From SyncLinear.com | CAL-1514

roae avatar Apr 18 '23 00:04 roae