Skip to content

Commit

Permalink
auth
Browse files Browse the repository at this point in the history
  • Loading branch information
nmsimons committed Sep 18, 2024
1 parent 65ee004 commit 67b4111
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/start/azure_start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export async function signedInAzureStart() {
scopes: [
"user.read",
"api://fhl-token-provider.azurewebsites.net/Data.Read",
"offline_access",
],
});
} else if (currentAccounts.length > 1 || currentAccounts.length === 1) {
Expand Down
2 changes: 2 additions & 0 deletions src/utils/auth_helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export async function getFunctionToken(account: AccountInfo) {
throw new Error("Account is required for acquiring function token");
}

console.log();

const functionTokenResponse = await axios.post(
process.env.TOKEN_PROVIDER_URL + "/.auth/login/aad",
{
Expand Down

0 comments on commit 67b4111

Please sign in to comment.