-
Notifications
You must be signed in to change notification settings - Fork 927
Fix AuthError incoherent structure. #5600
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
Conversation
Add a AuthErrorData interface for customData in `FirebaseError` Change tenantid to tenantId, other tenantId are formatted like this, better than smallcase since ID is a "word"
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for sending this! The PR looks good, but instead of creating a new named interface for error.customData
, we'd like to have that field type inlined
In this way `extends Record<string, string | undefined>` is discarded.
Hi, @sam-gc ---- update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run yarn build
in the packages/auth
directory -- I believe there will be a generated file change that will change that needs to be checked in as well
@Pablion I'm not sure I quite follow the issue you're describing, but if it builds and tests pass then this is what we want |
I see what's going on here, we have an
So all the related |
Okay so I dug into this a bit more and it looks like there's going to have to be a deep-ish refactor of the multi-factor code to make this work. @Pablion would you please change the base to https://github.com/firebase/firebase-js-sdk/tree/auth_error_type_fix ? We can go ahead and merge the type changes that you've done in this PR, and after that I'll go ahead and make the necessary refactors/fixes before opening a new PR to merge into Master. I'll CC you on that final PR 👍 |
@sam-gc I tried to fix the MFA error last night and found it quite complex. I'll do what you said now. |
@Pablion I believe you can use this same PR, you just need to edit the base by clicking the |
@sam-gc I closed this PR because I want to change the branch name, also thinking a new PR would make things clearer. |
Add a AuthErrorData interface for customData in
FirebaseError
Change tenantid to tenantId, other tenantId are formatted like this, better than smallcase since ID is a "word"
Discussion
this closes #5599
More TODOs
Testing
I don't know how to test for this specific issue.
API Changes
NONE