Skip to content

Page loading twice after successful login #7

@DeepakAK47

Description

@DeepakAK47

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions