From 7130b1be70d22c4752e0a5e36339247bc7d40189 Mon Sep 17 00:00:00 2001 From: Patrick McMichael Date: Thu, 5 Dec 2024 21:35:43 +0000 Subject: [PATCH] Fix missing comma in code sample (token-lifetimes.md msal-browser) (#7443) And fix `CacheLookupPolicy.Default` case. Co-authored-by: Thomas Norling --- lib/msal-browser/docs/token-lifetimes.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/msal-browser/docs/token-lifetimes.md b/lib/msal-browser/docs/token-lifetimes.md index 7efccf6b42..d37a4b62b5 100644 --- a/lib/msal-browser/docs/token-lifetimes.md +++ b/lib/msal-browser/docs/token-lifetimes.md @@ -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 }; @@ -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 }; @@ -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 = {