omniauth / omniauth-oauth2

An abstract OAuth2 strategy for OmniAuth.
MIT License
502 stars 304 forks source link

Unwrap OAuth2::Error #147

Open coezbek opened 3 years ago

coezbek commented 3 years ago

In case an error is raised within the OAuth2 request() it would make sense to forward the error kind.

At least the invalid_credentials currently returned doesn't capture all errors which can occur during request_phase.