refactor(auth): removed verification console logs

This commit is contained in:
Nicolas Drolet 2025-10-22 08:09:13 -04:00
parent 88f7c0cb0e
commit 8b514c8beb
2 changed files with 1 additions and 3 deletions

View File

@ -50,11 +50,9 @@ export class AuthentikStrategy extends PassportStrategy(OIDCStrategy, 'openidcon
): Promise<any> {
try {
const email = profile.emails?.[0]?.value;
console.log('email: ', email);
if (!email) return cb(new Error('Missing email in OIDC profile'), false);
const user = await this.authentikAuthService.validateUser(email);
console.log('user: ', user);
if (!user) return cb(new Error('User not found'), false);
return cb(null, user);

View File

@ -10,7 +10,7 @@ import { EmailToIdResolver } from "src/modules/shared/utils/resolve-email-id.uti
import { BankCodesResolver } from "src/modules/shared/utils/resolve-bank-type-id.utils";
import { PrismaService } from "src/prisma/prisma.service";
import { TimesheetMap } from "../utils-helpers-others/timesheet.types";
import { Shift, Expense } from "../dtos/timesheet.dto";
import { Shift, Expense } from "src/modules/shared/classes/timesheet.dto";
@Injectable()
export class TimesheetsCommandService extends BaseApprovalService<Timesheets>{