fixing broken test suite + configs + cleaning deprecation warnings

Hi there, 

I was kinda digging around looking for some examples of authentication on github and found yours, but it threw few deprecation warnings and jasmine config was outdate, so no tests were passing anymore, so I tidied up those things, so just if you want to keep it up to date and fully functional, here is my PR, thx a lot man, gave me great idea for our implementation :)

keep up the good work :+1: