I am trying to acquire token by aquiretokensilent after login and then have to do authorization in multiple modules.As documentation of MSAL-browser acquiretokensilent will automatically take care of refresh token.In network tab also i am able to see refresh token.But how to use it, does it automatically replace access token or do i need to do something extra and how i can see that refresh token in the console converting to access token after expiry of access token.I have read lot of documents but not got clearity how to use it.

How to use refresh token coming from acquiretoken silent in MSAL-browser
9.1k views Asked by user3420561 At
1
There are 1 answers
Related Questions in ANGULARJS
- How to automatically change path in angular when scrolling
- Error two clicks to be able to login Angular 16
- Passing an array of objects through the $http.post method in angular JS does not work
- Understanding how to apply Angular Signals from beginning on an existing service
- provider duplicate while compiling a Cordova application for the Android platform
- How can I use angularjs $parse service in Angular?
- Width of custom headers in ag-grid (angular) doesn't match with column's width
- Issues with Katex/ngx-markdown Rendering in Angular 16
- How to make Angular SSR wait for async operations to finish that are initiated in ngOnInit?
- I want to install @angular/google-maps npm Package in angular 16.2.12 but "npm install @angular/google-maps" this is not working/ tell me other query
- Angular 17 standalone application integrate CKEditor 5 -- Error: window is not defined
- Why is $scope >= 0 showing true in interpolation while empty in controller?
- The XMLHttpRequest compatibility library was not found
- Making Gantt Chart Column Labels More Readable
- Pass key-value pairs of object as individual arguments to component in Angular
Related Questions in AZURE-ACTIVE-DIRECTORY
- How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
- Microsoft Entra ID - How to delete a tenant?
- Azure AD guest account in web app authentication user claims data
- Handling errors in MSAL Redirect - reactjs login with microsoft sso
- Azure Cross Cloud Auth using AAD
- Get id token from the access token
- Microsoft Identity does not work in docker desktop
- how to get refresh token in msal-browser Azure AD B2C login?
- Local DX for service-to-service authentication based on Managed Identities in Azure
- How can I add an identity provider to an existing user in an AWS Cognito user pool using the OIDC protocol?
- Azure B2C MFA custom policy flow 'try another way'
- How can I protect an Java Spring boot API against Azure AD B2C if I only have an id_token?
- Is there any way to get a new Azure CLI token without logging out?
- Code a Delegated Permission in Azure Powershell
- Service Principals I create are not being created as mine
Related Questions in AZURE-AD-GRAPH-API
- How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
- getting 401 with no message while creating teams meeting link using azure graph client in NodeJS,JS
- Graph API retrieve multiple applications based on list of appids
- Can we create event in user's calendar with application permissions?
- How to Create Events in User's Outlook Calendar Without Microsoft Account?
- GraphServiceClient using authorization token / refresh token mechanism
- Get AzureAD/EntraID application properties from API call
- "AADSTS9002313: Invalid request. Request is malformed or invalid. While requesting Refresh Tokens
- Microsoft Graph API - Get users with specified app roles
- LastpaswordchangedDatetime return as longint value instead of datetime ,when i calling graphapi from custom policy( forgot password custom policy)
- MS Graph API Insufficient permissions when using Python SDK, sufficient when doing normal HTTP requests
- how to add a user using emailId to azure ad group using java spring boot application
- how to get Azure AD refresh token in Next-Auth / Auth.js
- Roles claim not present in token error when using graph API to connect to SharePoint using selected sites permission
- Python Azure Graph API request for Delegated request needing Admin consent
Related Questions in MSAL.JS
- msal-browser with a non-Microsoft identity provider is refreshing tokens every time acquireTokenSilent called
- BrowserAuthError: popup_window_error: Error opening popup window on @azure/msal-browser 2.16.1
- Azure angular msal/browser package is opening blank popup when trying to log into teams
- TypeError: request.deviceCodeCallback is not a function when using MSAL Node
- How to build a library that can be used in various types of applications (executables, web, etc.) using msal-node?
- When logging in with MsalAuthenticationTemplate and it redirects me to my website, it gives a rendering error
- Ionic React Android, unable to get access token after redirect
- OUTLOOK: MAC: Add-in using MSAL/GraphAPI, Refresh token for ssoSilent fails
- Encounter CROS error while trying to get key vault secrets in my Angular app(using Msal.js)
- Properly secure a Vue 3 SPA with MSAL browser and Vue router navigation guards
- Getting Application roles in JWT token for external users and Microsoft internal users after the Authentication
- MSAL js, Does extraScopesToConsent function properly during the loginRedirect workflow?
- MSAL authentication in Angular Logout redirect problem
- AADB2C90085 error every time user is redirected to applicaiton
- msal-browser failed in Office Addin Dialog API
Related Questions in MSAL-ANGULAR
- msal/angular reloads page mulitple times
- Azure angular msal/browser package is opening blank popup when trying to log into teams
- MSAL Angular Library is returning access token in response
- NullInjectorError: No provider for PublicClientApplication! MSAL
- NullInjectorError: No provider for StsConfigLoader! MSAL angular
- Generic type 'ɵɵComponentDeclaration' requires 7 type argument(s)
- MSAL popup logout probem with my postLogoutRedirectUri
- Encounter CROS error while trying to get key vault secrets in my Angular app(using Msal.js)
- how to correctly validate issuer in nodejs using passport-azure-ad?
- AcquireTokenSilent method providing a new accesstoken everytime even though it hasn't expired yet
- MsalBroadcastService.inProgress$ stuck in startup
- MSAL authentication in Angular Logout redirect problem
- GraphClient Business Account OnBehalfOfCredential authentication failed
- MSAL Angular login Invalid access token starts with 'Ew' from common tenant while users logging to my application
- AADB2C90085 error every time user is redirected to applicaiton
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
A refresh token is used for renewing an access token or request access tokens with other scopes.
This official doc indicated that how a refresh token renews/requests a new access token and a new refresh token at the base layer.
And yes, you should call
aquiretokensilentbefore API call, if the access token exists and it is not expired, this function will reply the access token to you from local cache directly, if not, it will request a new access token by refresh token from Azure AD. For details, see this doc.