Skip to content

Throw a more helpful error if there isn't a 'sub' field #1366

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

Merged
merged 2 commits into from
Nov 8, 2018

Conversation

ryanpbrewster
Copy link
Contributor

Right now if you try firebase.initializeTestApp({ ..., auth: { "email": "[email protected]" }) it will be rejected in the emulator because we require a sub field. This happens silently and is pretty confusing. I think we should blow up immediately in the client, so developers can figure out what they're doing wrong.

@ryanpbrewster ryanpbrewster merged commit b12d2ef into master Nov 8, 2018
@ryanpbrewster ryanpbrewster deleted the rpb/auth-uid branch November 8, 2018 02:09
Feiyang1 pushed a commit that referenced this pull request Nov 9, 2018
* Throw a more helpful error if there isn't a 'sub' field

* fix test
zijianjoy pushed a commit that referenced this pull request May 24, 2019
* Throw a more helpful error if there isn't a 'sub' field

* fix test
@firebase firebase locked and limited conversation to collaborators Oct 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants