chore: Passport login UI

Merged
YA
7mo ago
+16-3

Proposed changes (including videos or screenshots)

This is a temporary change on Login web UI, which should support both OAuth, legacy meteor OAuth and new Passport OAuth. The idea behind supporting both of these OAuth flows is for testing both side by side.

We can enable these flows by setting a flag fuselage-localStorage-useLegacyOAuth on local storage as follows -

  • To use new Passport flow - Either don't set the flag on local storage or set it as false.
  • To use legacy meteor flow - Set the flag variable as true.

Issue(s)

Steps to test or reproduce

Further comments

PRM-17

Summary by CodeRabbit

  • Bug Fixes

    • Sign-out now immediately clears local user data and exits the session flow to prevent stale state during logout.
  • New Features

    • Added a legacy OAuth mode toggle for login services.
    • When legacy mode is off, logins perform a direct OAuth redirect; when on, the previous in-app login flow is preserved.