omniauth/omniauth-oauth2

handling invalid_grant errors

rgarcia opened this issue · 0 comments

Is there a way to handle an invalid_grant error, specifically an invalid_code error?

There are some cases where this happens due to bad user behavior (i.e. reloading the redirect URL with the code), and I'd like to handle it gracefully.