Question regarding AcquireTokenSilent in MSAL.js #7029
nicolasschmidt2001
started this conversation in
Design
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
MSAL.js implementation:
After logging in (scopes in loginRequest same as those in token request below) and setting the active account,
--code--
// Define the scopes for token request
const SCOPES = ["openid"];
const tokenRequest = {
scopes: SCOPES,
};
// Function to acquire token
function acquireToken() {
msalInstance.acquireTokenSilent(tokenRequest)
--end code--
and then I handle the response accordingly
Is there a set of parameters in tokenRequest or loginRequest such that the response of acquireTokenSilent(tokenRequest) will only return an idToken and not an AccessToken (currently response contains both)?
Is there a set of parameters in the tokenRequest or loginRequest to extend the time between which user interaction is required to acquireTokenSilent?
Beta Was this translation helpful? Give feedback.
All reactions