I'm learning passport and passport-local, using this versions:

> 
> "passport": "^0.4.0", "passport-local": "^1.0.0"
> 
> 
> 

The problem is that when try to write a user registry after get form data, receive this error message:

> 
> (node:9120) UnhandledPromiseRejectionWarning: TypeError: done is not a
>  function
>  at Strategy.passport.use.LocalStrategy [as \_verify] (C:\codes\Gclimb\passport\localAuth.js:27:5)
> 
> 
> 

This is the code for my localAuth.js

```
const passport = require('passport')
const LocalStrategy = require('passport-local').Strategy
const User = require('../models/user')

passport.serializeUser((user, done) => {
    done(null, user.id)
})

passport.deserializeUser(async(id, done) => {
    const user = await User.findById(id)
    done(null, user)
})

passport.use('local-signup', new LocalStrategy({

    usernameField: 'username',
    passwordField: 'password',
    passReqToCallback: true

}, async (req, username, email, password, done) => {

    const user = new User()
    user.email = email
    user.password = password
    user.username = username
    await user.save()
    done(null, user) // <----- Line 27(error)
}))

```