method fix for custom authentication
Merge pull request #674 from ryanrdetzel/master

Fix for example in authentication.html