@rojo2/mongoose-password
v1.1.1
Published
Mongoose Plugin for saving secure passwords (using PBKDF2)
Downloads
7
Readme
Mongoose Password plugin
Mongoose password plugin using @rojo2/password
import password from "@rojo2/mongoose-password";
import { Schema } from "mongoose";
const UserSchema = new Schema({
email: {
type: String,
unique: true
}
});
UserSchema.plugin(password);
Made with :heart: by ROJO 2 (http://rojo2.com)