Update authentication example to include error reason

Having just spend 10/20 mins trying to figure out what the error meant after copying this example I think it should include the error message by default.