Skip to content

UI Error handling not the same during sign up and sign in #866

@MrVentzi

Description

@MrVentzi

[REQUIRED] Describe your environment

  • Operating System version: Windows 10
  • Browser version: Chrome Version 92.0.4515.107 (Official Build) (64-bit)
  • "firebase": "^8.6.8",
  • "firebaseui": "^4.8.0",
  • "gcip-iap": "^0.1.4",

[REQUIRED] Describe the problem

Steps to reproduce:

  1. Create a firebase ui app
  2. Create a blocking cloud function - e.g. check if the email is verified, and throw error if not
  3. Throw error during login with custom message

throw new gcipCloudFunctions.https.HttpsError('permission-denied', Please verify your email before proceeding.);

Tried the process in 2 flows.
During sign up:

  1. Sign up with new user
  2. Error is shown as expected
    image
    console error here: [ 16.665s] [firebaseui] setAccountInfo: {"code":"auth/internal-error","message":"Please verify your email before proceeding."}

During sign in:

  1. Sign in with the new user
  2. Error is not handled correctly
    image
    console error here: [104.998s] [firebaseui] verifyPassword: HTTP Cloud Function returned an error: {"error":{"code":403,"message":"Please verify your email before proceeding.","status":"PERMISSION_DENIED"}}

Let me know if you need anything else.

Would appreciate if you have a workaround to fix the UI in the meantime?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions