title: Nuxt auth with passportjs?
body: <p>How use <a href="https://auth.nuxtjs.org/schemes/local.html" rel="nofollow noreferrer">nuxt auth</a> Module (front-end) with <a href="http://www.passportjs.org/packages/passport-local/" rel="nofollow noreferrer">passport-local</a> using JWT (back-end express)  ?</p>
  <p>defining jwt strategy for verify jwt token (express)</p>
  <pre class="lang-js prettyprint-override"><code>    var JwtStrategy = require('passport-jwt').Strategy,
          ExtractJwt = require('passport-jwt').ExtractJwt;
      var opts = {}
      opts.jwtFromRequest = ExtractJwt.fromAuthHeaderAsBearerToken();
      opts.secretOrKey = 'secret';
      opts.issuer = 'accounts.examplesoft.com';
      opts.audience = 'yoursite.net';
      passport.use(new JwtStrategy(opts, function(jwt_payload, done) {
          User.findOne({id: jwt_payload.sub}, function(err, user) {
              if (err) {
                  return done(err, false);
              }
              if (user) {
                  return done(null, user);
              } else {
                  return done(null, false);
                  // or you could create a new account
              }
          });
      }));
  </code></pre>
  <p>defining local strategy for verify username nad password (express)</p>
  <pre class="lang-js prettyprint-override"><code>    passport.use(new LocalStrategy(
        function(username, password, done) {
          User.findOne({ username: username }, function (err, user) {
            if (err) { return done(err); }
            if (!user) { return done(null, false); }
            if (!user.verifyPassword(password)) { return done(null, false); }
            return done(null, user);
          });
        }
      ));
  </code></pre>
  <p>code for issuing token after verifying username and password (expresss)</p>
  <pre class="lang-js prettyprint-override"><code>    app.post('/login', 
        passport.authenticate('local', { failureRedirect: '/login' }), //need to update from nuxt auth.
        function(req, res) {
          res.redirect('/');
        });
  </code></pre>
  <p>nuxt auth local strategy consume username and passsword returns a JWT token (nuxt)</p>
  <pre class="lang-js prettyprint-override"><code>    this.$auth.loginWith('local', {
        data: {
          username: 'your_username',
          password: 'your_password'
        }
      })
  </code></pre>
  <p>It can work independently how do i combine these ?</p>