Created
January 20, 2018 17:46
-
-
Save dasmido/12efdefa3faf40df1e77f24efcc9ca25 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
// function to register user | |
// function for authenticate user | |
// function to store user data (token) | |
storeUserData(token, user){ | |
localStorage.setItem('id_token', token); | |
localStorage.setItem('user', JSON.stringify(user)); | |
this.authToken = token; | |
this.user = user; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment