Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Browser window does not allow the user to get OTPs #41

Open
2 of 4 tasks
Nekidev opened this issue Feb 2, 2025 · 2 comments
Open
2 of 4 tasks

bug: Browser window does not allow the user to get OTPs #41

Nekidev opened this issue Feb 2, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@Nekidev
Copy link

Nekidev commented Feb 2, 2025

Describe the bug

Sign up is pretty much unusable, since there's this issue which doesn't allow users to go fetch their OTP code somewhere else, since they need to dismiss the app, and therefore the browser window is closed. This happens in Android only.

Expected behavior

The browser window should not automatically close.

How to reproduce?

Make a basic installation of the library and switch to another app while in the browser window, then try to go back to the browser window, you'll see it has automatically disappeared.

Context

  • Logto Cloud
  • Self-hosted, Logto version =
    • Container (Docker image)
    • Raw Node.js

Screenshots

Screen_Recording_20250202_021625_One_UI_Home.1.mp4
@Nekidev Nekidev added the bug Something isn't working label Feb 2, 2025
@Nekidev
Copy link
Author

Nekidev commented Feb 2, 2025

The issue should supposedly be fixed with this expo PR.

@Nekidev
Copy link
Author

Nekidev commented Feb 2, 2025

This comment shows a workaround, which helps, while not perfect. It'd be adding this line to @logto/rn's client.js file.

Image

It doesn't make the browser open in its past state if you reopen the app from its icon, but it does keep the browser window in the background without automatically closing it, which allows to have the app working for signups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant