0👍
You need to call this method to complete the login, when your app reloads upon return from login:
userManager.signinRedirectCallback()
Have a look at how a sample of mine handles page load and the underlying oidc-client-js call.
Source:stackexchange.com