Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit f8e58bd

Browse files
author
jacobawenger
committed
Removed unneeded $offAuth method and added error message to promise rejection
1 parent 2534e50 commit f8e58bd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/FirebaseAuth.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444

4545
// Authentication state methods
4646
$onAuth: this.onAuth.bind(this),
47-
$offAuth: this.offAuth.bind(this),
4847
$getAuth: this.getAuth.bind(this),
4948
$requireAuth: this.requireAuth.bind(this),
5049
$waitForAuth: this.waitForAuth.bind(this),
@@ -161,7 +160,7 @@
161160
if (authData !== null) {
162161
deferred.resolve(authData);
163162
} else if (rejectIfAuthDataIsNull) {
164-
deferred.reject();
163+
deferred.reject("AUTH_REQUIRED");
165164
} else {
166165
deferred.resolve(null);
167166
}

0 commit comments

Comments
 (0)