Skip to content

Clean up our to/from JSON implementations #3606

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 4 commits into from
Aug 12, 2020
Merged

Clean up our to/from JSON implementations #3606

merged 4 commits into from
Aug 12, 2020

Conversation

avolkovi
Copy link
Contributor

  • Remove anonymous credential/provider since they're not exposed and
    don't do anything
  • rename toPlainObject on User to toJSON per API spec
  • relax restrictions around ProviderId & SignInMethod typing since they
    can sometimes have values outside of our enum

@changeset-bot
Copy link

changeset-bot bot commented Aug 11, 2020

💥 No Changeset

Latest commit: 8ec6f1e

Merging this PR will not cause any packages to be released. If these changes should not cause updates to packages in this repo, this is fine 🙂

If these changes should be published to npm, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@avolkovi avolkovi force-pushed the avolkovi/json branch 2 times, most recently from 46fbfb5 to 7f2e70e Compare August 11, 2020 17:30
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 11, 2020

Binary Size Report

Affected SDKs

No changes between base commit (f1de10e) and head commit (adb60da).

Test Logs

- Remove anonymous credential/provider since they're not exposed and
don't do anything
- rename toPlainObject on User to toJSON per API spec
- relax restrictions around ProviderId & SignInMethod typing since they
 can sometimes have values outside of our enum
@avolkovi avolkovi merged commit 55d3c26 into auth-next Aug 12, 2020
@avolkovi avolkovi deleted the avolkovi/json branch August 12, 2020 21:32
sam-gc pushed a commit that referenced this pull request Sep 1, 2020
* Clean up our to/from JSON implementations

- Remove anonymous credential/provider since they're not exposed and
don't do anything
- rename toPlainObject on User to toJSON per API spec
- relax restrictions around ProviderId & SignInMethod typing since they
 can sometimes have values outside of our enum

* PR feedback and more cleanup

* Rejigger our error type checking to allow app-less errors

* PR feedback
@firebase firebase locked and limited conversation to collaborators Sep 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants