express-stormpath
express-stormpath copied to clipboard
Resolve error message from OAuth error
When a Facebook OAuth callback errors then resolve the error message from Facebook's error structure.
How to verify
- Start an example application and navigate to
/login. - Click the login to Facebook login link.
- While being on the Facebook OAuth provider page prompting you to authorize your application to access your Facebook account. Go into the Facebook Developer dashboard and remove your whitelisted callback URI.
- Go back to the Facebook provider page and authorize your application to access the account.
- You should be redirected back to
/loginand with an error message stating[object Object]. - Redo steps 1-4 but without removing your whitelisted callback URI.
- You should now see a proper error message (not
[object Object]).
Fixes #528