Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
steindekker committed Oct 19, 2023
1 parent 0f9d0de commit 8a6666c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ private void acquireToken(ISingleAccountPublicClientApplication context, List<St
} else {
Logger.info("Starting silent login flow");
AcquireTokenSilentParameters.Builder builder = new AcquireTokenSilentParameters.Builder()
.withScopes(scopes)
.fromAuthority(authority);
.withScopes(scopes)
.fromAuthority(authority);

if (ca.getCurrentAccount() != null) {
if (ca != null && ca.getCurrentAccount() != null) {
Logger.info("Silent login flow for current account");
builder.forAccount(ca.getCurrentAccount());
builder = builder.forAccount(ca.getCurrentAccount());
}

AcquireTokenSilentParameters parameters = builder.build();
Expand Down

0 comments on commit 8a6666c

Please sign in to comment.