diff --git a/libs/auth/server/src/lib/auth.db.service.ts b/libs/auth/server/src/lib/auth.db.service.ts index 69acf2b9..aa5f4aac 100644 --- a/libs/auth/server/src/lib/auth.db.service.ts +++ b/libs/auth/server/src/lib/auth.db.service.ts @@ -136,6 +136,11 @@ export async function hasRememberDeviceRecord({ userAgent?: Maybe; }) { try { + console.log('TEMP REMOVE ME: hasRememberDeviceRecord: userId', userId); + console.log('TEMP REMOVE ME: hasRememberDeviceRecord: deviceId', deviceId); + console.log('TEMP REMOVE ME: hasRememberDeviceRecord: ipAddress', ipAddress); + console.log('TEMP REMOVE ME: hasRememberDeviceRecord: userAgent', userAgent); + const matchingRecords = await prisma.rememberedDevice.count({ where: { userId, @@ -145,6 +150,7 @@ export async function hasRememberDeviceRecord({ expiresAt: { gte: new Date() }, }, }); + console.log('TEMP REMOVE ME: matchingRecords:', matchingRecords); return matchingRecords > 0; } catch (ex) { logger.error({ ...getErrorMessageAndStackObj(ex) }, 'Error checking for remember device record');