From aee33334ac837c634abd184f2d6dd99804c67aba Mon Sep 17 00:00:00 2001 From: marcos-silva-rodrigues Date: Mon, 21 Jul 2025 15:01:41 -0300 Subject: [PATCH] UPDATE: add log to debug --- src/modules/auth/passport-strategies/google-strategy.ts | 1 + src/utils/OauthSecrets.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/modules/auth/passport-strategies/google-strategy.ts b/src/modules/auth/passport-strategies/google-strategy.ts index 2af25cd..ca1a94d 100644 --- a/src/modules/auth/passport-strategies/google-strategy.ts +++ b/src/modules/auth/passport-strategies/google-strategy.ts @@ -26,6 +26,7 @@ export class GoogleLoginStrategy extends PassportStrategy( callbackURL: oauthSecrets['google-login'].redirect_uri, scope: ['email', 'profile', 'openid'], }; + console.log("GoogleLoginStrategy", options.clientID, options.callbackURL); const verify = ( accessToken: string, refreshToken: string, diff --git a/src/utils/OauthSecrets.ts b/src/utils/OauthSecrets.ts index 28b9f62..9717c2b 100644 --- a/src/utils/OauthSecrets.ts +++ b/src/utils/OauthSecrets.ts @@ -24,6 +24,7 @@ export async function getOauthSecrets() { const path = process.env.SM_OAUTH_PATH; const secretsManagerClient = new SecretsManagerClient({}); for (const key in secrets) { + console.log(`Fetching secret for ${key} from path ${path}/${key}`); const getSecretComand = new GetSecretValueCommand({ SecretId: `${path}/${key}`, });