Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const LoginSchema = new Schema({
- username: {
- type: String,
- unique: true
- },
- email: {
- type: String,
- unique: true
- },
- password: {
- type: String,
- minlength: 8
- },
- tokens: [
- {
- tokenString: {
- type: String
- },
- tokenType: {
- type: String,
- enum: ['access', 'refresh']
- },
- isBlacklisted: {
- type: Boolean,
- default: false
- }
- }
- ]
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement