vencax / netlify-cms-github-oauth-provider

netlify oauth github client sending token in form as netlify service itself
204 stars 127 forks source link

Invalid state key #32

Open Intelligence247 opened 1 year ago

vencax commented 1 year ago

Any further info?

pmpinto commented 1 year ago

For anyone else landing here and being extremely disappointed with the lack of info, know that I just had stumbled in this very same error and it was due to having the wrong "Authorization callback URL" in GitHub's OAuth Application form.

Basically, I had it set to Netlify's API endpoint, then changed it to my custom URL, forgot to save it and clicked the "Generate a new client secret" button, which does a full page refresh, hence the new custom URL being lost.

vencax commented 1 year ago

Hi, I cannot understand. What exactly you would add to README?