Skip to content
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

Removed deprecated auth methods and functionality #563

Merged
merged 2 commits into from
Feb 15, 2015
Merged

Conversation

jwngr
Copy link

@jwngr jwngr commented Feb 14, 2015

@katowulf - Since we are going to do a major version bump, we can get rid of some old cruft. This removes all deprecated methods and functionality in our auth stuff. Here is a list of changes:

  • The previously deprecated ability to pass in credentials to the user management methods of $firebaseAuth as individual arguments has been removed in favor of a single credentials argument. We now throw a helpful error message.
  • The previously deprecated $sendPasswordResetEmail() method has been removed; use the equivalent $resetPassword() method instead.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.15%) to 92.85% when pulling 8470e77 on jw-auth-creds into b48e036 on master.

};
// Throw an error if they are trying to pass in separate string arguments
if (typeof credentials === "string") {
throw new Error("Passing in credentials to $createUser() as individual arguments has been removed in favor of a single credentials argument. See the AngularFire API reference for details.");
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be ambiguous, as the context assumes one is upgrading and has read the old API docs. Maybe we should just say "$createUser() expects an object containing email and password arguments, but received a string."? Same suggestion for below.

Copy link
Contributor

Choose a reason for hiding this comment

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

I realize this wasn't your change, but I think we're far enough out from the upgrade point to go ahead and be more general.

@katowulf
Copy link
Contributor

One minor suggestion. Feel free to ignore.

@jwngr
Copy link
Author

jwngr commented Feb 15, 2015

@katowulf - Good call on the error messages. I took your suggestion. Back to you!

@jwngr jwngr assigned katowulf and unassigned jwngr Feb 15, 2015
@coveralls
Copy link

Coverage Status

Coverage increased (+0.15%) to 92.85% when pulling b88d273 on jw-auth-creds into b48e036 on master.

katowulf added a commit that referenced this pull request Feb 15, 2015
Removed deprecated auth methods and functionality
@katowulf katowulf merged commit db222d0 into master Feb 15, 2015
@katowulf katowulf deleted the jw-auth-creds branch February 15, 2015 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants