Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setUserToken(token)
- Returns: Promise
- Set the auth token and fetch the user using the new token and current strategy.
- TIP: This function can properly set the user after registration
- this.$auth.setUserToken(token)
- .then(() => this.$toast.success('User set!'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement