1
0
mirror of synced 2026-02-03 18:01:02 -05:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Siddharth Suresh
f1be08eddc Update packages/blitz-auth/src/server/auth-sessions.ts 2023-08-17 02:14:22 +05:30
Siddharth Suresh
85d6e189d0 fix toolkit-app auth locations 2023-08-17 02:09:31 +05:30
Siddharth Suresh
95b32d38fd feat: solve the infinite reload issue 2023-08-17 02:07:17 +05:30
5 changed files with 2 additions and 1 deletions

View File

@@ -151,9 +151,10 @@ export async function getSession(
res: ServerResponse,
appDir = false,
): Promise<SessionContext> {
res.setHeader(HEADER_SESSION_CREATED, "")
ensureApiRequest(req)
ensureMiddlewareResponse(res)
debug("cookiePrefix", globalThis.__BLITZ_SESSION_COOKIE_PREFIX)
if (res.blitzCtx.session) {