Skip to content

fix(auth): fix typings and externs for PhoneAuthProvider.credential #50

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 1 commit into from
Jun 14, 2017

Conversation

jsayol
Copy link
Contributor

@jsayol jsayol commented Jun 14, 2017

Discussion

Fixes issue #48

Testing

n/a

API Changes

None

@jshcrowthe jshcrowthe requested a review from bojeil-google June 14, 2017 17:28
Copy link
Contributor

@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.

Thanks for fixing this.

typings/app.d.ts Outdated
@@ -196,7 +196,7 @@ declare namespace firebase.auth {

class PhoneAuthProvider extends PhoneAuthProvider_Instance {
static PROVIDER_ID : string ;
static credential (verificationId : string , verificationCode : string ) : firebase.Promise < any > ;
static credential (verificationId : string , verificationCode : string ) : firebase.auth.AuthProvider ;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be firebase.auth.AuthCredential

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, you're right. Should have double-checked, sorry!
Fixed.

@@ -196,7 +196,7 @@ declare namespace firebase.auth {

class PhoneAuthProvider extends PhoneAuthProvider_Instance {
static PROVIDER_ID : string ;
static credential (verificationId : string , verificationCode : string ) : firebase.Promise < any > ;
static credential (verificationId : string , verificationCode : string ) : firebase.auth.AuthProvider ;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be firebase.auth.AuthCredential

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@bojeil-google bojeil-google merged commit bc94aae into firebase:master Jun 14, 2017
@jsayol jsayol deleted the fix-issue-48 branch June 14, 2017 18:02
@firebase firebase locked and limited conversation to collaborators Oct 27, 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