fix previous commit and change authentication in auth.js: