Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-cs committed Oct 3, 2024
1 parent a82e15c commit 0093166
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/services/azure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ export const getCertificateChain = async (tenantId: string, keyId: string): Prom
};

const getKeys = async (tenantId: string): Promise<Map<string, string>> => {
console.log('Retrieving keys ...');
const startTime = Date.now();
console.log(`Retrieving keys at ${startTime} ... `);
const response = await axios.get(`https://login.microsoftonline.com/${tenantId}/discovery/keys`);
const endTime = Date.now();
console.log(`Response received at ${endTime} ...`);
console.log(`Time taken: ${endTime - startTime} ms`);

const map: Map<string, string> = new Map();

Expand Down

0 comments on commit 0093166

Please sign in to comment.