Skip to content

Trying to log in with Email+Password when already logged in with OAuth previously only shows "Incorrect password" #1313

@bezysoftware

Description

@bezysoftware

"Link accounts that use the same email" is turned on.

In v7:

  1. Users logs in for the first time with OAuth provider (e.g. Google)
  2. They sign out and next time they mistakenly try to log in with Email+Password
  3. They get "Password Incorrect"

This is a different behavior than in v6, where they would get this dialog:
Image

This helps users a lot to identify how they previously logged in when they forget. Looking at the network calls:

v6 calls https://identitytoolkit.googleapis.com/v1/accounts:createAuthUri (without password in payload, only email) which replies with

{
  "kind": "identitytoolkit#CreateAuthUriResponse",
  "allProviders": [ "google.com"  ],
  "signinMethods": [ "google.com"  ]
}

v7 calls https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword (with password & email in payload) and receives

{
  "error": {
    "code": 400,
    "message": "INVALID_PASSWORD",
    "errors": [
      {
        "message": "INVALID_PASSWORD",
        "domain": "global",
        "reason": "invalid"
      }
    ]
  }
}

Can we bring back the previous behavior to help users identify how they previously logged in?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions