marcusramberg/Mojolicious-Plugin-OAuth2 — pull request #27 by akarelas (2014-03-14 20:59:11+00:00)
Title: improved error-handling

Before, if an error occurred during the authorization stage, the user would just keep on visiting the oauth2 provider in an endless loop. With this patch, at least in blocking mode, `get_token` will return ($token, $err, $state) and the user won't enter an endless loop. The programmer can now easily check $err.

If it didn't break backwards compatibility, I would have implemented something similar for the non-blocking mode.