openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Login does not automatically redirect user after successful authentication

Open Pixel20coder opened this issue 6 months ago • 7 comments

After successfully logging in, the application does not automatically redirect the user to the expected page/dashboard.

Steps to Reproduce Open the application. Navigate to the login page. Enter valid credentials. Click the Login button. Expected Behavior

After successful authentication, the user should be automatically redirected to the dashboard/home page (or the page they were trying to access).

Actual Behavior

Login appears to succeed, but the user remains on the login page and must manually refresh or navigate to another page.

Environment Platform: Web Browser: [Your Browser Name] Version: [Version if applicable] Additional Notes

The authentication process seems to complete successfully, but the redirect/navigation step is not being triggered after login. This may be related to routing, session state updates, or callback handling after authentication.

Possible Areas to Investigate

Post-login redirect logic Authentication callback handler Router/navigation state updates Session/token synchronization after login

Feel free to modify the expected redirect destination based on how OpenHuman is intended to behave.

Pixel20coder avatar May 27 '26 04:05 Pixel20coder

I'd like to contribute to fixing this bug.

Sushanth012 avatar May 27 '26 05:05 Sushanth012

I'd like to contribute to fixing this bug.

SURE

Pixel20coder avatar May 27 '26 07:05 Pixel20coder

still not working @Sushanth012 take a look at it

Pixel20coder avatar May 27 '26 07:05 Pixel20coder

Hey @Pixel20coder, could you please share which machine/environment you encountered this bug on, along with the app version?

YellowSnnowmann avatar May 27 '26 07:05 YellowSnnowmann

i have same problem

simonphuongnguyen avatar May 27 '26 14:05 simonphuongnguyen

Doesn't look like this was pushed to public releases wasn't compiled so you have to use it with the source code only?

mysnubfighter avatar May 27 '26 16:05 mysnubfighter

Hi @Sushanth012 — closing this issue as it's not reproducible against the current codebase.

After tracing the login flow, CoreStateProvider already listens for the core-state:session-token-updated event and calls refresh() → commitState() to update React context, and handleAuthDeepLink already navigates to /home once the session is committed. The described gap (session written to a non-React store, React context not updated, no redirect) does not exist.

If you're able to reproduce the redirect failure with a specific set of steps, please open a new issue with those details and we'll take another look. Thanks for reporting!

M3gA-Mind avatar May 28 '26 12:05 M3gA-Mind