Laravel does not decrypt the refresh_token by sending the request with angular 2

1

When I perform the request to retrieve the token it works, but when I send the grant type request refresh_token laravel can not decrypt the refresh token.

Angular 2

let params = {
        client_id: this.params['client_id'],
        client_secret: this.params['client_secret'],
        grant_type: 'refresh_token',
        refresh_token: this.getRefreshToken()
    };
    let headers = new Headers();
    headers.append('Accept', 'application/json');
    headers.append('Content-Type', 'application/x-www-form-urlencoded');
    return this.http.post(OauthLoginEndPointUrl, this.utilService.queryBuilder(params),{headers:headers})
        .map(resullt => {
            this.handleData(resullt);
        })
        .catch(this.handleError);

The request returns

{"error":"invalid_request","message":"The refresh token is invalid.","hint":"Token is not linked to client"}
    
asked by anonymous 06.03.2017 / 13:31

0 answers