Which code segment should you insert at line 06?

You need to complete the MSAL.js code for SSO.

Which code segment should you insert at line 06?
A . storeAuthStateInCookie: false
B . storeAuthStateInCookie: true
C . cacheLocation: ‘localStorage’
D . cacheLocation: ‘sessionStorage’

Answer: C

Explanation:

Scenario: Implement single sign-on (SSO) and minimize login prompts across browser tabs.

When your application is open in multiple tabs and you first sign in the user on one tab, the user is also signed in on the other tabs without being prompted. MSAL.js caches the ID token for the user in the browser localStorage and will sign the user in to the application on the other open tabs.

By default, MSAL.js uses sessionStorage which does not allow the session to be shared between tabs. To get SSO between tabs, make sure to set the cacheLocation in MSAL.js to localStorage.

Reference: https://docs.microsoft.com/bs-latn-ba/Azure/active-directory/develop/msal-js-sso

Latest MS-600 Dumps Valid Version with 142 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments