이미 클라이언트가 로그인된 상태에서 세션을 업그레이드하려는 경우 발생하던 500 오류 수정

This commit is contained in:
static committed 2025-07-08 19:38:49 +09:00
1 parent 983cb2cc57
commit 6e14b45656
3 files changed
+35 -40

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ export class AuthenticationError extends Error {
export const startSession = async (userId: number, ip: string, userAgent: string) => {
const { sessionId, sessionIdSigned } = await issueSessionId(32, env.session.secret);
await createSession(userId, null, sessionId, ip, userAgent);
await createSession(userId, sessionId, ip, userAgent);
return sessionIdSigned;
};