Simple nodejs authentication server - handles some back and forth for the lazy dev