fix #2, TypeError: Cannot read property authenticate of undefined
Merge pull request #3 from givanse/bugfix

fix #2, TypeError: Cannot read property authenticate of undefined