modified backend controllers to support new auth providers

This commit is contained in:
Sheen Capadngan
2023-08-06 19:45:27 +08:00
parent 5604232aea
commit 04fdccc45d
5 changed files with 25 additions and 6 deletions
+3
View File
@@ -44,6 +44,9 @@ const userSchema = new Schema<IUser>(
type: String,
enum: AuthProvider,
},
authProviders: [{
type: String,
}],
email: {
type: String,
required: true,