Skip to content

Commit

Permalink
Fix missing comma in code sample (token-lifetimes.md msal-browser) (#…
Browse files Browse the repository at this point in the history
…7443)

And fix `CacheLookupPolicy.Default` case.

Co-authored-by: Thomas Norling <[email protected]>
  • Loading branch information
Saturn and tnorling authored Dec 5, 2024
1 parent bddad31 commit 7130b1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/msal-browser/docs/token-lifetimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ For example if you'd like to ensure the user can acquire tokens silently for the
var request = {
scopes: ["Mail.Read"],
account: currentAccount,
forceRefresh: true
forceRefresh: true,
refreshTokenExpirationOffsetSeconds: 7200 // 2 hours * 60 minutes * 60 seconds = 7200 seconds
};

Expand Down Expand Up @@ -89,7 +89,7 @@ var currentAccount = msalInstance.getAccountByUsername(username);
var silentRequest = {
scopes: ["Mail.Read"],
account: currentAccount,
forceRefresh: false
forceRefresh: false,
cacheLookupPolicy: CacheLookupPolicy.Default // will default to CacheLookupPolicy.Default if omitted
};

Expand Down Expand Up @@ -119,8 +119,8 @@ var currentAccount = msalInstance.getAccountByUsername(username);
var silentRequest = {
scopes: ["Mail.Read"],
account: currentAccount,
forceRefresh: false
cacheLookupPolicy: cacheLookupPolicy.Default // will default to CacheLookupPolicy.Default if omitted
forceRefresh: false,
cacheLookupPolicy: CacheLookupPolicy.Default // will default to CacheLookupPolicy.Default if omitted
};

var request = {
Expand Down

0 comments on commit 7130b1b

Please sign in to comment.