added jsdoc to AuthService