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

A newly signed up user can't log in via web-based dotcom login #24171

Open
crazytonyli opened this issue Mar 9, 2025 · 1 comment · May be fixed by #24260
Open

A newly signed up user can't log in via web-based dotcom login #24171

crazytonyli opened this issue Mar 9, 2025 · 1 comment · May be fixed by #24260

Comments

@crazytonyli
Copy link
Contributor

crazytonyli commented Mar 9, 2025

Issue

When they log in via web view, a newly signed-up user who hasn't set a password(*) yet will have the only option of receiving a login link in their email. However, the login flow in the web view does not move on after the user taps the login link to authorize access.

(*) On a desktop browser, the "Get Started" on https://wordpress.com workflow allows you to create accounts without setting a password.

Potential fixes

There are two options to fix the issue:

Option 1. Handle the redirect URL in the iOS app

When the user taps the login link from their email, they'll open Safari to authorize the mobile app's access to their account. After that, the webpage should redirect the user to the app, which takes over the login (via token in the redirect URI).

However, if the user taps the login link from another device (computer, phone, tablet, whatever), the app will still be stuck at the "Check your email for the login link" Calypso webpage, and the user still can't log in to the app even though they have done what WP.com tells them to do. That's why I think the option 2 below might be a better solution.

Option 2. Calyspo polls the authorization result for the login link

When the user logs in from the app via web view and arrives at the "Check your email for the login link" webpage, they should be able to open the login link from any device.

The login link can present the usual Deny/Authorize access webpage, and shows a message "Continue from the mobile app" after the user deny/authorize the access.

Meanwhile, the "Check your email for the login link" webpage in the app should poll the authorization result of the login link and automatically take the user to the next step based on the result.

There are many alternatives to polling, such as showing a code in the login link and asking the user to type it into the app. Both are standard practices used in many other apps.

@dangermattic
Copy link
Collaborator

Thanks for reporting! 👍

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

Successfully merging a pull request may close this issue.

2 participants