Advertisement
Guest User

Untitled

a guest
Sep 24th, 2018
9,035
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.             },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement