Skip to content

feat(auth): Adds support to specifying Auth state persistence. #105

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
Jul 25, 2017

Conversation

bojeil-google
Copy link
Contributor

Defines externs for new API to specify Auth state persistence.
fix(auth): Adds missing phoneNumber property in UserInfo.
fix(auth): Fixes incorrect return type in reauthenticateAndRetrieveDataWithCredential.

fix(auth): Adds missing phoneNumber property in UserInfo.
fix(auth): Fixes incorrect return type in reauthenticateAndRetrieveDataWithCredential.
@@ -480,7 +487,7 @@ firebase.User.prototype.reauthenticateWithCredential = function(credential) {};
* </dl>
*
* @param {!firebase.auth.AuthCredential} credential
* @return {!firebase.Promise<void>}
* @return {!firebase.Promise<!firebase.auth.UserCredential>}
Copy link
Contributor

Choose a reason for hiding this comment

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

This same change should be made in the typings.

Copy link
Contributor

Choose a reason for hiding this comment

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

Typings were autoimported from externs (same for below)

* @enum {string}
* An enumeration of the possible persistence mechanism types.
*/
firebase.auth.Auth.Persistence = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, this should also be in the typings.

@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of the commit author(s) and merge this pull request when appropriate.

Copy link
Contributor

@jshcrowthe jshcrowthe left a comment

Choose a reason for hiding this comment

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

The externs all look solid. I have also included the generated typings and imported source into this branch. @bojeil-google PTAL

Copy link
Contributor Author

@bojeil-google bojeil-google 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. Thanks @jshcrowthe!

@jshcrowthe jshcrowthe merged commit c58719c into master Jul 25, 2017
@jshcrowthe jshcrowthe deleted the jscore_4_2_0 branch July 25, 2017 22:53
@jsayol
Copy link
Contributor

jsayol commented Jul 26, 2017

Just FYI, commit e2d1a40 undid most of the typings improvements from PR #56

@firebase firebase locked and limited conversation to collaborators Oct 26, 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.

5 participants