From 44bdb81a60d3a44ba7e379f3c20fe6d8fb284339 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Mon, 7 Jul 2025 08:24:16 +0000 Subject: (대표님) 변경사항 20250707 12시 30분 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/users/auth/verifyCredentails.ts | 8 ++++---- lib/users/session/repository.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/users') diff --git a/lib/users/auth/verifyCredentails.ts b/lib/users/auth/verifyCredentails.ts index ff3cd0e3..42e6dac3 100644 --- a/lib/users/auth/verifyCredentails.ts +++ b/lib/users/auth/verifyCredentails.ts @@ -29,7 +29,7 @@ export type AuthError = export interface AuthResult { success: boolean; user?: { - id: string; + id: number; name: string; email: string; imageUrl?: string | null; @@ -370,7 +370,7 @@ export async function verifyExternalCredentials( return { success: true, user: { - id: user.id.toString(), + id: user.id, name: user.name, email: user.email, imageUrl: user.imageUrl, @@ -541,7 +541,7 @@ export async function authenticateWithSGips( ): Promise<{ success: boolean; user?: { - id: string; + id: number; name: string; email: string; imageUrl?: string | null; @@ -594,7 +594,7 @@ export async function authenticateWithSGips( return { success: true, user: { - id: user.id.toString(), + id: user.id, name: user.name, email: user.email, imageUrl: user.imageUrl, diff --git a/lib/users/session/repository.ts b/lib/users/session/repository.ts index a3b44fbf..be7a0b2b 100644 --- a/lib/users/session/repository.ts +++ b/lib/users/session/repository.ts @@ -206,7 +206,7 @@ export class SessionRepository { } } - static async logoutAllUserSessions(userId: string) { + static async logoutAllUserSessions(userId: number) { try { await db .update(loginSessions) -- cgit v1.2.3