I saw two other posts opened with the same error message but they did not provide sufficient information.
I'm using the ruby wrapper for Constant Contact:
auth = ConstantContact::Auth::OAuth2.new(
redirect_url: <return_url> )
Then I get the autorization url:
I'm going through the OAuth2 flow. And then I'm redirected to my application. So far so good. When I try:
I get the "Invalid verification code" error. Any tips on what may be happening here?
If you're waiting any period of time between getting the verification code and using it, that's probably the issue. The verification codes are live for only a few seconds before they expire. You want to automate this to make sure the get access token step is completed immediately after the first call is made to begin the authentication flow.
Partner API Support Engineer