Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Signin(email: string, password: string): void {
- let data: Object = {
- client_id: 2,
- client_secret: 'vSFxVqALQHjyotPyGfhrGj3ziudUGsts2ZWiAGms',
- grant_type: 'password',
- username: email,
- password: password,
- };
- this._HTTP.post(
- this.OAuth + 'token',
- data,
- {headers: this.Headers}
- ).toPromise()
- .then( (_response) => {
- console.log (_response);
- });
- }
- LaravelPassportHttpMiddlewareCreateFreshApiToken::class,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement