fix(backend): 🐛 update cookie name of session store to use new secure prefix

This commit is contained in:
Julien Oculi 2024-07-09 10:41:20 +02:00
parent 8feb5b71f1
commit d433c11035

View file

@ -47,7 +47,7 @@ export class SessionStore {
} }
static getFromRequest(request: Request): Session | undefined { static getFromRequest(request: Request): Session | undefined {
const sessionId = getCookies(request.headers)['_SESSION'] ?? '' const sessionId = getCookies(request.headers)['__Secure-SESSION'] ?? ''
return this.getSession(sessionId) return this.getSession(sessionId)
} }