While using hello.js with Azure B2C in a single-page application (SPA) setup, the page reloads twice after a successful login.
The first load happens when Azure B2C redirects back to the SPA.
The second load occurs because of the location.assign(p.page_uri) call in hello.js (line 1383).
Removing this line prevents the second reload, and the app continues to work fine.
Question
Is the location.assign(...) call actually required for some specific setups, or can it be safely removed in SPA-based authentication flows?