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 signInWithCredential to auth-next #2963

Merged
merged 12 commits into from May 27, 2020

Conversation

avolkovi
Copy link
Contributor

No description provided.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 21, 2020

Binary Size Report

Affected SDKs

  • firebase

    Type Base (e71513a) Head (c406b26) Diff
    firebase-auth.js 173 kB 173 kB -16 B (-0.0%)
    firebase-database.js 186 kB 186 kB -12 B (-0.0%)
    firebase-firestore.js 288 kB 288 kB -52 B (-0.0%)
    firebase-firestore.memory.js 230 kB 230 kB -52 B (-0.0%)
    firebase-storage.js 40.8 kB 40.8 kB -8 B (-0.0%)
    firebase.js 821 kB 821 kB -88 B (-0.0%)

Test Logs

@avolkovi avolkovi force-pushed the avolkovi/auth-next-sign-in-with-credential branch 2 times, most recently from 94dbfe6 to 56ad8c4 Compare April 23, 2020 00:00
@avolkovi avolkovi force-pushed the avolkovi/auth-next-sign-in-with-credential branch from 56ad8c4 to 33ce5dd Compare April 23, 2020 16:41
@avolkovi avolkovi force-pushed the avolkovi/auth-next-sign-in-with-credential branch 2 times, most recently from 95ef116 to fd48014 Compare April 24, 2020 17:30
@avolkovi avolkovi marked this pull request as ready for review April 24, 2020 20:15
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 great

@avolkovi avolkovi force-pushed the avolkovi/auth-next-sign-in-with-credential branch 2 times, most recently from 94b413a to beda9fc Compare May 19, 2020 18:43
* Add conditional delays to auth-next

* [AUTOMATED]: Prettier Code Styling

* Use typescript asserts keyword for typesafe assertions

* [AUTOMATED]: Prettier Code Styling

* Rebase conflicts & PR feedback

* More PR Feedback

* Strip debug asserts from prod builds

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: API Reports

* Fix logic in assertion

* Revert merge artifacts

* PR Feedback
@avolkovi avolkovi force-pushed the avolkovi/auth-next-sign-in-with-credential branch from 2e2eab0 to 2daba6b Compare May 27, 2020 18:13
@avolkovi avolkovi force-pushed the avolkovi/auth-next-sign-in-with-credential branch from 92df09b to a050969 Compare May 27, 2020 18:25
@avolkovi avolkovi requested review from sam-gc and removed request for hiranya911 and hsubox76 May 27, 2020 19:10
@avolkovi avolkovi merged commit 06847d8 into auth-next May 27, 2020
@avolkovi avolkovi deleted the avolkovi/auth-next-sign-in-with-credential branch May 27, 2020 22:27
XuechunHou added a commit that referenced this pull request Jun 23, 2020
* Initial submit of auth-next framework (#2851)

Initial package structure--copied from packages/template, but with tests working

* Add mock fetch helper (#2878)

Add mock fetch library for tests

* Add core types & error map to auth-exp (#2890)

* Add core types & error map

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* User should be an interface for now

we can make an implementation class later

* Add signUp API method for auth-next (#2892)

* 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

* Add initial user object implementation (#2896)

* Initial user object implementation

* Consolidate mock auth object, add user object (#2906)

* Consolidate mock auth / add user test helper

* [AUTOMATED]: Prettier Code Styling

* Fix tests

* Add remaining API methods to auth-next (#2901)

* User should be an interface for now

we can make an implementation class later

* Add API call to signUp

* [AUTOMATED]: Prettier Code Styling

* Update tests to test a little more

* Add remaining API methods to auth-next

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* Add more tests to account API methods

* Pass in SDK version & correctly send GET request params

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: Prettier Code Styling

* Fix import ordering

* Minor formatting change

* [AUTOMATED]: Prettier Code Styling

* Add support for API timeouts to auth-next (#2915)

* Add support for API timeouts to auth-next

* PR feedback

* [AUTOMATED]: Prettier Code Styling

* Add version helpers to auth-next (#2910)

* Add version helper to auth-next

* [AUTOMATED]: Prettier Code Styling

* PR feedback

* Add persistence layer: index db, in memory, and browser{local, session} (#2908)

* Add fetchSignInMethodsForEmail to auth-next (#2924)

* Add fetchSignInMethodsForEmail to auth-next

* [AUTOMATED]: Prettier Code Styling

* PR Feedback

* [AUTOMATED]: Prettier Code Styling

* Add sendEmailVerification to auth-next (#2926)

* Add sendEmailVerification to auth-next

* [AUTOMATED]: Prettier Code Styling

* Add missing test

* Remove GetOobCodeRequestType in favor of Operation

* Add a persistence manager class (#2925)

* Added react native build target (#2947)

* Add password reset methods to auth-next (#2928)

* Add sendEmailVerification to auth-next

* [AUTOMATED]: Prettier Code Styling

* Remove GetOobCodeRequestType in favor of Operation

* Add password reset methods to auth-next

* [AUTOMATED]: Prettier Code Styling

* PR Feedback

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: Prettier Code Styling

* Resolve merge conflicts

* [AUTOMATED]: Prettier Code Styling

* use queryString helper in auth-next (#2936)

* Use queryString from firebase/util instead of homebrew one

* [AUTOMATED]: Prettier Code Styling

* PR Feedback

* [AUTOMATED]: Prettier Code Styling

* Initial auth object implementation + initializeAuth() (#2932)

* use app-exp in the build:deps script

* Add conditional delays to auth-next (#2934)

* Add conditional delays to auth-next

* [AUTOMATED]: Prettier Code Styling

* Use typescript asserts keyword for typesafe assertions

* [AUTOMATED]: Prettier Code Styling

* Rebase conflicts & PR feedback

* More PR Feedback

* Strip debug asserts from prod builds

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: API Reports

* Fix logic in assertion

* Revert merge artifacts

* PR Feedback

* Add sendSignInWithEmail to auth-next (#2960)

* Add sendSignInWithEmail links

* [AUTOMATED]: Prettier Code Styling

* PR Feedback

* PR Feedback

* Add auth listener implementation, add user.reload() (#2961)

* Standardize auth-next style (#2983)

* Standardize auth-next style

- prefix directory for test blocks
- use kebab style for test values to make them visually distinct from
keys
- use '#' to prefix instance methods and '.' for class methods
- prefix all private exported methods with '_'

* [AUTOMATED]: Prettier Code Styling

* Two more cases I missed

* Add refresh token endpoint + implementation to token manager (#2975)

* Add react native persistence class (#2955)

Added React Native persistence class

* Add getIdTokenResult implementation (#3014)

* Update internal types to work with external types (#3075)

* Update internal types to work with external types

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* PR feedback

* [AUTOMATED]: Prettier Code Styling

* Further refactoring of auth types. Add public exports to src/index.ts (#3078)

* Further refactoring of auth types. Add public exports to src/index.ts

* Add app-exp to devDependencies

* PR feedback

* user.delete() implementation (#3072)

* user.delete() implementation

* [AUTOMATED]: Prettier Code Styling

* PR feedback

* PR feedback

* Use auth impl object instead of mock auth object (#3098)

* Add signInWithCredential to auth-next (#2963)

* Add signInWithCredential to auth-next

* [AUTOMATED]: Prettier Code Styling

* Add conditional delays to auth-next (#2934)

* Add conditional delays to auth-next

* [AUTOMATED]: Prettier Code Styling

* Use typescript asserts keyword for typesafe assertions

* [AUTOMATED]: Prettier Code Styling

* Rebase conflicts & PR feedback

* More PR Feedback

* Strip debug asserts from prod builds

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: API Reports

* Fix logic in assertion

* Revert merge artifacts

* PR Feedback

* Cleanup & PR Feedback

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* Add more tests

* [AUTOMATED]: Prettier Code Styling

* Rebase conflicts

* Cleanup type exports

* PR feedback

* Declare abstract class abstractly

* Refactor so every unit test gets its own Auth object (#3129)

* Refactor so every unit test gets its own Auth object

* PR feedback

* Formatting

* Add updateProfile, updateEmail, updatePassword (#3122)

* Profile management

* Add updateProfile, updateEmail, updatePassword

* Fixing up tests

* Update tests further

* Add re-exports for public functions

* Fix up authCredential types to use public versions

* Formatting

* Code cleanup

* Formatting

* PR feedback

* Formatting

* updateDoc()/deleteDoc() signature fix (#3147)

* Transaction/WriteBatch signature fix (#3151)

* Take WriteStream offline when IndexedDB is unavailable (#2995)

* Do not build firestore lite in build because it breaks regular release build (#3156)

* Do not build firestore lite in build because it breaks release build

* add release build script

* add pre script for build:release (#3161)

* Add setLogLevel() (#3154)

* Add DocumentReference (#3123)

* issue #2393 fix for analytics module

* removed unnecessary sw check within isSupported method for analytics

* Add recaptcha implementation (#3166)

* Add recaptcha

* Formatting

* Export in index.ts

* Address PR feedback, add a test helper for stubbing timeouts

* Formatting

* using raw indexDB api to open a dummy database

* Add signInWithPhoneNumber implementation (#3191)

* Add signInWithPhoneNumber flow

* Formatting

* PR feedback

* Formatting

* modified firestore packagejson for testing purpose

* added console log for reading code

* Add signInAnonymously to auth-next (#2986)

* Add signInWithCredential to auth-next

* Add signInAnonymously to auth-next

* [AUTOMATED]: Prettier Code Styling

* Add more tests

* Move these back into providers

* One more rebase

* added debug print

* Add signInWithCustomToken implementation (#3136)

* Add signInWithCustomToken

* Add re-export in index.ts

* Formatting

* Formatting

* modular exports binary size analysis - created a dummy exp module under packages-exp and wrote first version of the tool

* added test cases for size analysis, added handler for the case of variable statement exports

* add signInWithEmailAndPassword & signInWithEmailLink to auth-next (#3209)

* Cleanup credential inheritance tree

* Add signInWithEmailAndPassword and signInWithEmailLink to auth-next

* j/k phone credential/provider are actually public

* Add tests

* PR feedback

* added a handle for named reexports, encountered file path issue for unnamed exports

* Add linkWithCredential(), linkWithPhoneNumber(), unlink() (#3213)

* Add unlink(), linkWithCredential(), linkWithPhoneNumber()

* Formatting

* Formatting

* PR feedback

* Formatting

* Add export to index.ts

* Formatting

* now is able to extract re-exports symbols

* Add createUserWithEmailAndPassword to auth-next (#3212)

* Add createUserWithEmailAndPassword to auth-next

* PR feedback

* added support for renamed exports

* Cleanup public types in auth-next (#3217)

* Cleanup public types in auth-next

* PR feedback

* Add a demo page to auth-exp using the new modular methods (#3197)

* Add basic demo for new SDK

* Formatting

* Add anonymous auth and custom token

* Formatting

* Update to include newly-implemented pieces

* Formatting

* Add custom email flow methods to auth-next (#3223)

* Add reauthenticateWithCredential, reauthenticateWithPhoneNumber (#3225)

* Add link and reauth implementation to email credential (#3226)

* Add linking and reauth to email credential

* Formatting

* Add tests for new api method

* Formatting

* added handle for extracting full path of an external firebase module

* non-firebase module firebase module differentiation

* figured a built-in way to resolve module specifier

* Rough implementation

* Address PR comments

* Update out-of-sync internal versions

* Fix build issues.

* Add test:ci script to functions-types-exp

* Address PR comments

* Address PR comments

* Update package.json versions to fix build

* Address PR comments

* Explanatory comments for utility script

* Address PR comments

* Update package.json versions

* changed auth-exp package.json typings field to the appropriate

* pulled function exp, auth exp for testing

* rollup seems to be working

* created testing structure

Co-authored-by: samhorlbeck <sam.horlsen@gmail.com>
Co-authored-by: Alex Volkovitsky <avolkovi@google.com>
Co-authored-by: Scott Crossen <scottcrossen42@gmail.com>
Co-authored-by: Feiyang1 <plane1113@gmail.com>
Co-authored-by: Sebastian Schmidt <mrschmidt@google.com>
Co-authored-by: Feiyang <feiyangc@google.com>
Co-authored-by: Christina Holland <hsubox@gmail.com>
@firebase firebase locked and limited conversation to collaborators Jun 27, 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.

None yet

3 participants