Skip to content

Commit d49e022

Browse files
committed
feat: cleanup logs
1 parent ec21c83 commit d49e022

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

libs/data-access/data-access-auth/src/lib/data-access-auth.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,12 @@ export async function getToken(msalInstance: PublicClientApplication, account: A
1111
// Use the first account in the array as the active account
1212
account = accounts[0];
1313

14-
console.log('account:', account);
15-
1614
try {
1715
const response = await msalInstance.acquireTokenSilent({
1816
...loginConfig,
1917
account: account
2018
});
2119

22-
console.log('response:', response)
23-
2420
if (!response || !response.accessToken) {
2521
console.error('Failed to acquire token. Silent request failed.');
2622
return null;

libs/util/util-verify-token/src/lib/util-verify-token.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const jwksClient = jwksRsa({
99
const getSigningKey = (header: any, callback: any) => {
1010
jwksClient.getSigningKey(header.kid, (err: any, key: any) => {
1111
if (err) {
12-
console.log('Error in getSigningKey:', err);
12+
console.error('Error in getSigningKey:', err);
1313
callback(err, null);
1414
} else {
1515
const signingKey = key.publicKey || key.rsaPublicKey;
@@ -40,7 +40,7 @@ export async function verifyAzureB2CToken(request: Request, requiredScope: strin
4040
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4141
(err, decoded:any) => {
4242
if (err) {
43-
console.log('Error:', err); // Log any error
43+
console.error('Error:', err);
4444
reject(err);
4545
} else {
4646
// Check if the token has the required scope

0 commit comments

Comments
 (0)