-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
[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:
- Create a firebase ui app
- Create a blocking cloud function - e.g. check if the email is verified, and throw error if not
- 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:
- Sign up with new user
- Error is shown as expected

console error here:[ 16.665s] [firebaseui] setAccountInfo: {"code":"auth/internal-error","message":"Please verify your email before proceeding."}
During sign in:
- Sign in with the new user
- Error is not handled correctly

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?