Skip to content

Commit 9ee5aad

Browse files
committed
v0:ref: refactor orpc context to have determined context value
1 parent c0e0838 commit 9ee5aad

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

apps/workers/v0/src/orpc.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ export const authed = publicProcedures
2828
logDebug('✅ AUTHENTICATED:', context.var.session.user.email);
2929

3030
return next({
31-
context,
31+
context: {
32+
...context,
33+
var: {
34+
...context.var,
35+
session: context.var.session,
36+
},
37+
},
3238
});
3339
})
3440
.use(retry({ times: 2 }));

0 commit comments

Comments
 (0)