Add more debug info when an error occurs with the authentication provider