Authentication library for mongoose.