Synchronous auth example