Skip to content
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

Add signUp API method for auth-next #2892

Merged
merged 6 commits into from
Apr 13, 2020
Merged

Conversation

avolkovi
Copy link
Contributor

@avolkovi avolkovi commented Apr 9, 2020

Hey there! So you want to contribute to a Firebase SDK?
Before you file this pull request, please read these guidelines:

Discussion

  • Read the contribution guidelines (CONTRIBUTING.md).
  • If this has been discussed in an issue, make sure to link to the issue here.
    If not, go file an issue about this before creating a pull request to discuss.

Testing

  • Make sure all existing tests in the repository pass after your change.
  • If you fixed a bug or added a feature, add a new test to cover your code.

API Changes

  • At this time we cannot accept changes that affect the public API. If you'd like to help
    us make Firebase APIs better, please propose your change in an issue so that we
    can discuss it together.
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 9, 2020

Binary Size Report

Affected SDKs

No changes between base commit (a627ebf) and head commit (4a5783c).

Test Logs

@avolkovi avolkovi changed the base branch from avolkovi/auth-next-api to auth-next April 10, 2020 18:17
@avolkovi avolkovi force-pushed the avolkovi/auth-next-api-sign-up branch from 17ca4ca to 643e294 Compare April 10, 2020 18:22
@avolkovi avolkovi marked this pull request as ready for review April 10, 2020 20:49
@avolkovi avolkovi requested a review from bojeil-google April 10, 2020 20:49
@avolkovi avolkovi changed the title Avolkovi/auth next api sign up Apr 10, 2020
Copy link
Contributor

@sam-gc sam-gc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@avolkovi avolkovi merged commit 76b4fac into auth-next Apr 13, 2020
@avolkovi avolkovi deleted the avolkovi/auth-next-api-sign-up branch April 13, 2020 22:14
packages-exp/auth-exp/src/api/index.ts Show resolved Hide resolved
{
method,
headers: {
'Content-Type': 'application/json'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not all APIs will have json content type. This is true for secure token endpoint.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think our prototype ever required that endpoint, what content type does it use? I suppose we can allow this to be passed in

body: JSON.stringify(request)
}
: {};
const response = await fetch(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You seem to hardcode the fetch call. I suppose you can polyfill this. But not sure this can be polyfilled for all environments (eg. Node.js, react-native). What is your plan regarding this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are investigating react-native right now, suppose this can be passed in from the Auth object like we do with popupRedirectResolver

packages-exp/auth-exp/src/api/index.ts Show resolved Hide resolved
packages-exp/auth-exp/src/api/index.ts Show resolved Hide resolved
avolkovi added a commit that referenced this pull request Apr 22, 2020
* User should be an interface for now

we can make an implementation class later

* Add API call to signUp

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* Update tests to test a little more

* [AUTOMATED]: Prettier Code Styling
avolkovi added a commit that referenced this pull request Apr 23, 2020
* User should be an interface for now

we can make an implementation class later

* Add API call to signUp

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* Update tests to test a little more

* [AUTOMATED]: Prettier Code Styling
avolkovi added a commit that referenced this pull request Apr 24, 2020
* User should be an interface for now

we can make an implementation class later

* Add API call to signUp

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* Update tests to test a little more

* [AUTOMATED]: Prettier Code Styling
@firebase firebase locked and limited conversation to collaborators May 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
4 participants