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
  • 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('[email protected]', 'secret');
// sign in
account.signIn('[email protected]', '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('[email protected]');
// 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