-
Notifications
You must be signed in to change notification settings - Fork 929
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
Conversation
There was a problem hiding this 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 ; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
typings/firebase.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 ; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Discussion
Fixes issue #48
Testing
n/a
API Changes
None