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

OAuth login flow closes when backgrounding the app to get 2FA code, and then resuming via the app icon #941

Open
TobyDevelopment opened this issue Nov 26, 2024 · 2 comments

Comments

@TobyDevelopment
Copy link

Description:
When logging into the Mastodon Android app using my existing account with 2FA, the OAuth login flow closes when resuming via the app icon.
This result in having to start the login process from scratch.

Steps:

  1. Open the app and select Login
  2. Pick the server and select Next
  3. Enter email and password
  4. When on the 2FA step background the app to get the code
  5. Come back to the app by tapping the app icon on the home screen
  6. The app will be back on the previous server selection page instead of the 2FA step

This issue does not seem to happen when resuming the app from the app switcher.

@grishka
Copy link
Member

grishka commented Nov 26, 2024

Authentication happens in your default browser. If you have the "open links in" setting set to "system browser", it affects that too. ("In-app browser" is still your default one, but in the "custom tabs" mode for a more integrated experience)

@TobyDevelopment
Copy link
Author

The OAuth login flow opens up within the app in a Chrome Custom Tab.
It is not going to an external browser.

The app seems to resume correctly if using the app switcher but not when tapping the app icon if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants