made auth.js compatible with heroku