diff --git a/src/modules/auth/controllers/auth.controller.ts b/src/modules/auth/controllers/auth.controller.ts index 3c7af5c..ed52adb 100644 --- a/src/modules/auth/controllers/auth.controller.ts +++ b/src/modules/auth/controllers/auth.controller.ts @@ -417,6 +417,11 @@ export const getSessions = async (req: Request, res: Response, next: NextFunctio id: s.id, userAgent: s.userAgent, ipAddress: s.ipAddress, + deviceType: s.deviceType, + browser: s.browser, + os: s.os, + countryCode: s.countryCode, + city: s.city, createdAt: s.createdAt, lastActiveAt: s.lastActiveAt, isCurrent: s.id === req.sessionId, diff --git a/src/modules/auth/types/auth.types.ts b/src/modules/auth/types/auth.types.ts index 3baba0d..f673baf 100644 --- a/src/modules/auth/types/auth.types.ts +++ b/src/modules/auth/types/auth.types.ts @@ -88,6 +88,12 @@ export interface Session { userAgent?: string; ipAddress?: string; deviceInfo?: Record; + deviceType?: string; + deviceName?: string; + browser?: string; + os?: string; + countryCode?: string; + city?: string; expiresAt: Date; revokedAt?: Date; createdAt: Date;