diff --git a/libs/common/src/common.service.ts b/libs/common/src/common.service.ts index 871c2b6fa..c88d28240 100644 --- a/libs/common/src/common.service.ts +++ b/libs/common/src/common.service.ts @@ -17,6 +17,8 @@ import { import { CommonConstants } from './common.constant'; import { HttpService } from '@nestjs/axios/dist'; import { ResponseService } from '@credebl/response'; +import * as dotenv from 'dotenv'; +dotenv.config(); @Injectable() export class CommonService { @@ -370,7 +372,11 @@ export class CommonService { encryptedPassword, process.env.CRYPTO_PRIVATE_KEY ); + + this.logger.debug(`encryptedPassword ::: ${encryptedPassword}`); + this.logger.debug(`process.env.CRYPTO_PRIVATE_KEY ::: ${process.env.CRYPTO_PRIVATE_KEY}`); const decryptedPassword = JSON.parse(password.toString(CryptoJS.enc.Utf8)); + this.logger.debug(`decryptedPassword ::: ${decryptedPassword}`); return decryptedPassword; } catch (error) { throw new BadRequestException('Invalid Credentials');