Save JWT to user on login
This commit is contained in:
1 parent
62ce8e33b6
commit
5b2a05bc79
2 files changed
+5
No files matched your search
@@ -40,6 +40,9 @@ const UserSchema = mongoose.Schema(
|
||||
default: "user",
|
||||
enum: ["user", "admin"],
|
||||
},
|
||||
authToken: {
|
||||
type: String,
|
||||
},
|
||||
},
|
||||
{
|
||||
timestamps: true,
|
||||
|
||||
Reference in new issue
Block a user