ADAL-NODE to MSAL-NODE library migration issue

Gaikwad Nikhil 0 Reputation points

Having issue migrating ADAL-NODE library to MSAL-NODE library.

Getting following error when calling acquireTokenSilent method inside ConfidentialClientApplication msalInstance.

no_tokens_found: No refresh token found in the cache. Please sign-in

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,516 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alfredo Revilla (MSFT) 16,686 Reputation points Microsoft Employee

    Hello @Gaikwad Nikhil , calls to acquireTokenSilent must be wrapped in a try catch block in case interaction is required. You can also re-use refresh tokens acquired by ADAL with MSAL. For more information take a look to MSAL Node Standalone Sample: Refresh Token Grant, Token caching in MSAL Node, and Handle errors and exceptions.

    Let us know if you need additional assistance. If the answer was helpful, please accept it and rate it so that others facing similar issues can more easily find a solution.