Help with 401 unauthorized when user tries to login?

I get a 401 unauthorized when I try to log a user in and I’m not sure what could be missing from my user trying to login.

console

xhr.js?b50d:210 POST http://localhost:3000/api/auth 401 (Unauthorized)
dispatchXhrRequest @ xhr.js?b50d:210
xhrAdapter @ xhr.js?b50d:15
dispatchRequest @ dispatchRequest.js?5270:58
request @ Axios.js?0a06:108
wrap @ bind.js?1d2b:9
eval @ index.js?4360:63
login @ index.js?4360:61
wrappedActionHandler @ vuex.esm-browser.js?5502:305
dispatch @ vuex.esm-browser.js?5502:1031
boundDispatch @ vuex.esm-browser.js?5502:914
login @ Login.vue?a55b:59
Object.onClick._cache.<computed>._cache.<computed> @ Login.vue?a55b:19
callWithErrorHandling @ runtime-core.esm-bundler.js?5c40:6708
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js?5c40:6717
invoker @ runtime-dom.esm-bundler.js?830f:357
index.js?4360:77 hereError: Request failed with status code 401
Login.vue?a55b:62 Error: Request failed with status code 401
    at createError (createError.js?2d83:16:1)
    at settle (settle.js?467f:17:1)
    at XMLHttpRequest.onloadend (xhr.js?b50d:66:1)

vuex

login({ commit }, user) {
      return new Promise((resolve, reject) => {
        commit('auth_request')
        axios({ url: 'http://localhost:3000/api/auth', data: user, method: 'POST' })
          .then(resp => {
            const token = resp.data.token
            //const user = user
            //slocalStorage.setItem('token', stoken)
            // Add the following line:
            axios.defaults.headers.common['Authorization'] = token
            commit('auth_success', token, user)
            resolve(resp)
          })
          .catch(err => {
            commit('auth_error')
            //localStorage.removeItem('token')
            reject(err)
            console.log("here" + err);
          })
      });
    },

server.js

passport.use(
    new LocalStrategy({
        usernameField: 'email',
        passReqToCallback: true,
    }, (req, username, password, done) => {
        User.findOne({ email: username }, (err, user) => {
            if (err) {
                console.log(err);
            }
            if (!user) {
                return done(null, false);
            }
            bcrypt.compare(password, user.password, (err, req, res) => {
                if (res) {
                    // passwords match! log user in
                    //done(null, user);
                    //const userJSON = user.toJSON()
                    let token = jwt.sign({ id: user.id }, process.env.secret, {
                        expiresIn: 86400 // expires in 24 hours
                    });
                    // res.send({ auth: true, "token": token, "user": user });
                    res.json({
                        auth: true,
                        user: user,
                        token: token,
                        message: "Sign in successful",
                    })
                } else {
                    // passwords do not match!
                    return done(null, false);
                }
            });
        });
    })
);

auth.js

const express = require("express");
const authRouter = express.Router();
const passport = require("passport");


authRouter.post('/', passport.authenticate("local", {
    session: false
})
);

module.exports = authRouter;