Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/FirebaseAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,20 +193,20 @@
/*********************/
/* User Management */
/*********************/
// Creates a new email/password user. Note that this function only creates the user, if you
// wish to log in as the newly created user, call $authWithPassword() after the promise for
// this method has been resolved.
// Creates a new email/password user. Returns a promise fulfilled with the uid of the created
// user. Note that this function only creates the user, if you wish to log in as the newly
// created user, call $authWithPassword() after the promise for this method has been resolved.
createUser: function(email, password) {
var deferred = this._q.defer();

this._ref.createUser({
email: email,
password: password
}, function(error) {
}, function(error, user) {
if (error !== null) {
deferred.reject(error);
} else {
deferred.resolve();
deferred.resolve(user);
}
});

Expand Down