first implementation of the AuthService