question

imenu360 avatar image
imenu360 asked rachel Deactivated commented

Invalid OAuth credentials

Our access_token is getting UnAuthorized response. So we want to generate new token .

Used following link -

https://sandbox.dev.clover.com/oauth/...id={clientid}&clientsecret={secretkey}&code={code}

got response as -

{"access_token": ”[your access token]”}

But when we resend the same request for token, getting response as-

{"message":"Invalid OAuth credentials"}

Is there another way to regenerate token again at server side ?

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rachel avatar image rachel commented ·

Have you tried waiting in between receiving and using the access token?

0 Likes 0 ·

1 Answer

sam avatar image
sam Deactivated answered

code will expire after one time you use to retrieve OAuth token. You will need to use a uniquely generated code each time you go through the OAuth flow.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community