My Products
Help

invalid_grant when using refresh token

by Gert-Jan van der Kamp

Hi, 

 

I get a 400 with message "error": "invalid_grant" when trying to use the refresh token I got with the previous login. 

 

Here is my request :

POST https://connect.visma.com/connect/token HTTP/1.1
Accept: application/json
Content-Type: application/x-www-form-urlencoded
Host: connect.visma.com
Content-Length: 127
Expect: 100-continue

 

grant_type=refresh_token&refresh_token=6474**F1A6&client_id=isv_xlconnect

 

That form content seem to align with the docs except for the secret, but this app is PKCE.. 

Any idea what might be causing this? Can you see more details in the log? 

 

Regards Gert-Jan

 

2 REPLIES 2
Accepted solution
Gert-Jan van der Kamp
CHAMPION *

by Gert-Jan van der Kamp

Was able to fix by setting the "Refresh Token usage" to "One Time" to roll over the Refresh token every time. Think the "Re Use" setting has a bug. 

 

 

Yıldırım
VISMA

Hello, could you please report this to channel: VNI-Support@visma.com including developersupport@visma.com in the cc ? 

Thanks.