Skip to content

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

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

Open
MrVentzi opened this issue Jul 27, 2021 · 1 comment
Open

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

MrVentzi opened this issue Jul 27, 2021 · 1 comment

Comments

@MrVentzi
Copy link

[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?

@xil222
Copy link
Contributor

xil222 commented Jul 27, 2021

filed a internal bug to track b/194807579
will fix it soon

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

No branches or pull requests

2 participants