Guest User

untitled

a guest
Oct 27th, 2018
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. postLogin() {
  2. var data = {
  3. client_id: "xxx",
  4. client_secret: "xxx",
  5. grant_type: 'password',
  6. username: this.username,
  7. password: this.password,
  8. };
  9.  
  10. this.$api
  11. .post('/oauth/v2/token ', data)
  12. .then((response) => {
  13. this.handleResponse(response);
  14. })
  15. .catch((error) => {
  16. console.log(error);
  17. })
  18. },
Add Comment
Please, Sign In to add comment