Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Signin(email: string, password: string): void {
  2. let data: Object = {
  3. client_id: 2,
  4. client_secret: 'vSFxVqALQHjyotPyGfhrGj3ziudUGsts2ZWiAGms',
  5. grant_type: 'password',
  6. username: email,
  7. password: password,
  8. };
  9.  
  10. this._HTTP.post(
  11. this.OAuth + 'token',
  12. data,
  13. {headers: this.Headers}
  14. ).toPromise()
  15. .then( (_response) => {
  16. console.log (_response);
  17. });
  18. }
  19.  
  20. LaravelPassportHttpMiddlewareCreateFreshApiToken::class,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement