Closed vasanthtt closed 4 years ago
@RamonPage @canoas Please help me on this
The react-adal package seems to address this and might be a better option for a react app.
The react-adal package seems to address this and might be a better option for a react app.
Thanks. I will try this.
Category
I am using Adal Angular (v1.0.17) with TypeScript to login to the AzureAD from my SPFx component using react that uses adal.js for calling external API. I’ve noticed a bad experience in my spfx page, the page reloaded twice during login. When I debugged, the first reload happens when login happened in adal. This returns the id_refresh token in URL fragment in the reply URL. The next reload is called when this token is handled by
handleWindowCallback
method. I can suppress the second reload by configuring adal withnavigateToLoginRequestUrl: false
. But I am afraid to use this because the original URL contains the query string which is lost due to this setting.I need help to fix this multiple refreshes which actually gives a bad user experience.
ADAL Config
Handle id_refresh token