harden sse errors

This commit is contained in:
2026-08-23 17:35:45 -07:00
parent 98343e55d1
commit d0507481cb
2 changed files with 19 additions and 8 deletions
-2
View File
@@ -60,7 +60,6 @@ const verifySuperTokensSession = async (request: Request) => {
const userAuthId = session?.userId;
if (!userAuthId || !session) {
logger.info("No authenticated user");
return { context: { userAuthId: null, roles: [] } };
}
@@ -109,7 +108,6 @@ export const getSessionContextCore = async (
}
if (!session.context.userAuthId) {
logger.error("Unauthenticated user", session.context);
throw new Error("Unauthenticated");
}