authz/authn on all trpc procedures

This commit is contained in:
Avraham Sakal
2025-09-21 19:12:15 -04:00
parent fc70806b10
commit 0207e4fc47
7 changed files with 196 additions and 104 deletions
+1 -2
View File
@@ -12,13 +12,12 @@ export const data = async (pageContext: PageContextServer) => {
openrouter: getOpenrouter(
(pageContext.env?.OPENROUTER_API_KEY || env.OPENROUTER_API_KEY) as string
),
// jwt: pageContext.,
jwt: pageContext.session?.jwt,
dbClient: getDbClient(
(pageContext.env?.POSTGRES_CONNECTION_STRING ||
env.POSTGRES_CONNECTION_STRING) as string
),
});
const [
conversation,
// messages,