Search code examples
angularangular8azure-ad-msalangular9

Angular 9 issues with MSAL library


I am having issues with MSAL library in angular 9

No redirect callbacks have been set. Please call handleRedirectCallback() with the appropriate function

I do have handleRedirectCallback() in my authentication service class

 private authService: MsalService,
 this.authService.handleRedirectCallback((authError, response) => {
        //do stuff
        }

        //do stuff
      });

But this seems to be not working. Any ideas?


Solution

  • Since you're using angular, it might be a good idea to use the msal-angular library. It worked for me in an angular 9 project, but I had to manually update the "msal" library in package.json to "^1.3.0-beta.0".