initial commit

This commit is contained in:
2026-02-10 19:40:51 +01:00
commit 759e336956
62 changed files with 9682 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { createMiddleware } from "@tanstack/react-start";
import { auth } from "@zendegi/auth";
export const authMiddleware = createMiddleware().server(async ({ next, request }) => {
const session = await auth.api.getSession({
headers: request.headers,
});
return next({
context: { session },
});
});