Sync auth example with latest JS client
oops
Merge pull request #1 from mposolda/master

Sync auth example with latest JS client