Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. setUserToken(token)
  2. Returns: Promise
  3. Set the auth token and fetch the user using the new token and current strategy.
  4.  
  5. TIP: This function can properly set the user after registration
  6.  
  7. this.$auth.setUserToken(token)
  8. .then(() => this.$toast.success('User set!'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement