create-better-t-stack 2.9.0 → 2.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -10,7 +10,12 @@ const requireAuth = o.middleware(async ({ context, next }) => {
|
|
|
10
10
|
if (!context.session?.user) {
|
|
11
11
|
throw new ORPCError("UNAUTHORIZED");
|
|
12
12
|
}
|
|
13
|
-
return next({
|
|
13
|
+
return next({
|
|
14
|
+
context: {
|
|
15
|
+
...context,
|
|
16
|
+
session: context.session,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
14
19
|
});
|
|
15
20
|
|
|
16
21
|
export const protectedProcedure = publicProcedure.use(requireAuth);
|