Skip to content

Instantly share code, notes, and snippets.

@neilk
Forked from gr2m/account_dreamcode.js
Created May 2, 2013 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilk/5505612 to your computer and use it in GitHub Desktop.
Save neilk/5505612 to your computer and use it in GitHub Desktop.
// sign up
account.signUp('joe@example.com', 'secret');
// sign in
account.signIn('joe@example.com', 'secret');
// sign in via oauth
account.signInWith('twitter');
// sign out
account.signOut();
// change password
account.changePassword('currentpassword', 'newpassword');
// change username
account.changeUsername('currentpassword', 'newusername');
// reset password
account.resetPassword('joe@example.com');
// destroy account and all its data
account.destroy();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment