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

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,108 questions
{count} votes

1 answer

Sort by: Most helpful
  1. 2023-03-22T14:23:45.32+00:00

    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.

    0 comments No comments