kmrshntr / omniauth-slack

omniauth-slack
MIT License
95 stars 154 forks source link

'code_already_used' on https://slack.com/api/oauth.access #54

Open mariordiaz opened 7 years ago

mariordiaz commented 7 years ago

Hello guys. I am using this library for authorizing users. I am getting the 'code' from slack after authorizing the app. After that I execute a GET to https://slack.com/api/oauth.access passing client_id, client_secret and the code received in the previous step. And I get {ok:false, error:'code_already_used'}

I tried: Revoking all token and doing it again. Getting authorization code using this library and using link button. both worked fine, but using the returned code always gets the same result.

this error code is not listed as possible error of https://slack.com/api/oauth.access enpoint.

balindenberg commented 6 years ago

@mariordiaz Did you end up finding a solution for this? I'm stuck on the same problem.