Update authentication and user token generation