Refresh Token

GuillaumeFGuillaumeF Member Posts: 7

Hello


I have never been able to refresh any access_token, i followed carefully the documentation but i still get the same error when trying to refresh an old token (> 1 hour) : 


i'm calling : POST https://api.trial.lsk.lightspeed.app/oauth/token


Data (sent as application/x-www-form-urlencoded) : 

 'grant_type' => 'refresh_token',

 'refresh_token' => '[REDACTED]-b348e770cefe',   (this value is coming from the auth process, after code was used)


Header added :

Authorization: Basic [REDACTED]MzZjNiOg==

(the Basic key is a base64 encoding of the main API tokens => client_id:client_secret)


Response: 

{"timestamp":1631803141038,"status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource","path":"/oauth/token"}


What's wrong ?

1 comment

Sign In or Register to comment.