Skip to content

Invalid Code Verifier Error on Token Exchange #1335

Answered by Clarry100
Clarry100 asked this question in Q&A
Discussion options

You must be logged in to vote

It seems I have solved my own problem...

When initiating a fresh oauth flow Etsy pops up a browser tab asking the user to grant access before it issues the auth code data.
My API app was not waiting for the user to click this grant access button but requested the auth code before the button had been clicked.
This meant that some kinda old/random code data was extracted from browser cached data which mean following python code was using an old possibly expired auth code. This was causing the random errors I was experiencing. Mostly code verifier invalid.

So I have now added a small tkinter popup window with an "OK to proceed..." button where the ptython code waits up to x-seconds (I can va…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Clarry100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant