-
-
Save neilk/5505612 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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