Skip to content

Commit 7130b1b

Browse files
Saturntnorling
andauthored
Fix missing comma in code sample (token-lifetimes.md msal-browser) (#7443)
And fix `CacheLookupPolicy.Default` case. Co-authored-by: Thomas Norling <[email protected]>
1 parent bddad31 commit 7130b1b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/msal-browser/docs/token-lifetimes.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ For example if you'd like to ensure the user can acquire tokens silently for the
5454
var request = {
5555
scopes: ["Mail.Read"],
5656
account: currentAccount,
57-
forceRefresh: true
57+
forceRefresh: true,
5858
refreshTokenExpirationOffsetSeconds: 7200 // 2 hours * 60 minutes * 60 seconds = 7200 seconds
5959
};
6060

@@ -89,7 +89,7 @@ var currentAccount = msalInstance.getAccountByUsername(username);
8989
var silentRequest = {
9090
scopes: ["Mail.Read"],
9191
account: currentAccount,
92-
forceRefresh: false
92+
forceRefresh: false,
9393
cacheLookupPolicy: CacheLookupPolicy.Default // will default to CacheLookupPolicy.Default if omitted
9494
};
9595

@@ -119,8 +119,8 @@ var currentAccount = msalInstance.getAccountByUsername(username);
119119
var silentRequest = {
120120
scopes: ["Mail.Read"],
121121
account: currentAccount,
122-
forceRefresh: false
123-
cacheLookupPolicy: cacheLookupPolicy.Default // will default to CacheLookupPolicy.Default if omitted
122+
forceRefresh: false,
123+
cacheLookupPolicy: CacheLookupPolicy.Default // will default to CacheLookupPolicy.Default if omitted
124124
};
125125

126126
var request = {

0 commit comments

Comments
 (0)