Skip to content

Commit 942874a

Browse files
authored
fix(externs): fix auth externs (#160)
* fix(externs): fix auth externs * refactor(auth): Refactor firebase.auth.Auth instantiation
1 parent edad44d commit 942874a

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

externs/firebase-auth-externs.js

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ firebase.UserInfo.prototype.phoneNumber;
143143
* @interface
144144
* @extends {firebase.UserInfo}
145145
*/
146-
firebase.User;
146+
firebase.User = function() {};
147147

148148
/**
149149
* The phone number normalized based on the E.164 standard (e.g. +16505550101)
@@ -712,6 +712,19 @@ firebase.User.prototype.delete = function() {};
712712
*/
713713
firebase.User.prototype.toJSON = function() {};
714714

715+
/**
716+
* The Firebase Auth service interface.
717+
*
718+
* Do not call this constructor directly. Instead, use
719+
* {@link firebase.auth `firebase.auth()`}.
720+
*
721+
* See
722+
* {@link https://firebase.google.com/docs/auth/ Firebase Authentication}
723+
* for a full guide on how to use the Firebase Auth service.
724+
*
725+
* @interface
726+
*/
727+
firebase.auth.Auth = function() {};
715728

716729
/**
717730
* Checks a password reset code sent to the user by email or other out-of-band
@@ -854,20 +867,6 @@ firebase.auth.Auth.prototype.checkActionCode = function(code) {};
854867
*/
855868
firebase.auth.Auth.prototype.applyActionCode = function(code) {};
856869

857-
/**
858-
* The Firebase Auth service interface.
859-
*
860-
* Do not call this constructor directly. Instead, use
861-
* {@link firebase.auth `firebase.auth()`}.
862-
*
863-
* See
864-
* {@link https://firebase.google.com/docs/auth/ Firebase Authentication}
865-
* for a full guide on how to use the Firebase Auth service.
866-
*
867-
* @interface
868-
*/
869-
firebase.auth.Auth = function() {};
870-
871870
/**
872871
* The {@link firebase.app.App app} associated with the `Auth` service
873872
* instance.
@@ -1440,7 +1439,7 @@ firebase.auth.Auth.prototype.signInWithPhoneNumber =
14401439
* A result from a phone number sign-in, link, or reauthenticate call.
14411440
* @interface
14421441
*/
1443-
firebase.auth.ConfirmationResult;
1442+
firebase.auth.ConfirmationResult = function() {};
14441443

14451444

14461445
/**

0 commit comments

Comments
 (0)