@Billingi, Prabhakar , There are two available methods for authentication with redirect flows, namely:
- loginRedirect - if using this method, you will need to explicitly register a callback through the handleRedirectCallback() method. This is needed since redirect flows do not return promises as the popup methods do.
- loginPopup - The popup methods (loginPopup, acquireTokenPopup) return promises, so you can use the promise pattern (.then and .catch) to handle them.
For your case, I guess you can try using the loginRedirect method. Since I am not aware of how your code looks like, hence sharing the following link, which I believe might give you some more insight on the implementation.
https://stackoverflow.com/questions/46417709/how-to-use-loginredirect-instead-of-loginpopup
Hope this helps.
Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.