daviddesberg / PHPoAuthLib

PHP 5.3+ oAuth 1/2 Client Library
Other
1.08k stars 454 forks source link

Bubble up OAuth1 401 exceptions for handling #464

Open ethanclevenger91 opened 8 years ago

ethanclevenger91 commented 8 years ago

Currently if you make a request with invalid credentials you end up with an uncaught exception. Let's handle that. Could also just return false? Up for suggestions, but due to #463 something has to happen here or there's no way to verify that your access token is truly an access token, not a request token that was stored as both