schedula / laravel-passport-socialite

The missing social authentication plugin (i.e. SocialGrant) for laravel passport.
MIT License
50 stars 31 forks source link

Problem with refreshing the token #9

Open zoran-php opened 5 years ago

zoran-php commented 5 years ago

When I send refresh token that I get from social auth using Linkedin access token, I get 401, and description "The refresh token is invalid".

The Guzzle snippet that I'm using: $response = $http->post($url, [ 'form_params' => [ 'grant_type' => 'refresh_token', 'refresh_token' => $refreshToken, 'client_id' => $client_id, 'client_secret' => $client_secret, 'scope' => '', ] ]);