Skip to content

Jetpack Connect: Confusing Social Login flow when user doesn't have a WPCOM account yet. #88681

Open

Description

Impacted plugin

Jetpack

Quick summary

The current Jetpack Connect flow links to the following Login page:

Markup on 2024-03-19 at 16:14:59

When connecting a self-hosted Jetpack site to WordPress.com account that doesn't exist yet using "Continue with..." buttons, the flow gets confusing.

This seems to be a long-standing issue.


  • Issue was discovered: p1710857884265789/1710854911.107219-slack-C02TCEHP3HA
  • Related discussion: p7DVsv-kfF-p2#comment-49614

Steps to reproduce

  1. Create a test self-hosted Jetpack site.
  2. Open a new / incognito browser window and make sure you are not logged in to any WordPress.com account there.
  3. Log in to your new test site's WP Admin.
  4. Navigate to the Jetpack settings page and click on the "Finish setting up Jetpack" button (and then "Connect your user account") to connect your test site with WordPress.com account.
  5. Click on one of the "Continue with..." buttons and make sure to use an (Google / Apple / GitHub) account that hasn't been linked with any WordPress.com account yet.
  6. Follow the steps and observe the flow.

A clear and concise description of what you expected to happen.

If the Google / Apple / GitHub account hasn't been linked with any WordPress.com account before, the flow should probably let the user create new WordPress.com account first and then link it with their Jetpack site automatically (as soon as the WordPress.com account is created).

What actually happened

The system tries to log in the user, but since their WordPress.com account doesn't exist, the flow has different outcome depending on the service used.

For instance, if we try to log in with Google, the following message gets displayed and the user might get stuck there, not knowing what to do next:

Markup on 2024-03-19 at 16:17:03

If we log in with GitHub, we get the following message:

Markup on 2024-03-19 at 16:22:57

This message at least informs the user what is going on and provides the next step, but when they create their WordPress.com account, the original flow of connecting the Jetpack site is exited and the user ends up with WordPress.com account, but without their Jetpack site connected.

I haven't tested the flow with Apple account, but I expect similar behavior.

Impact

All

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

Self-hosted

Logs or notes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions