initial setup for google signin signup integration

This commit is contained in:
Sheen Capadngan
2023-04-25 23:47:46 +08:00
parent 3b00df6662
commit 007e8c4442
19 changed files with 455 additions and 16 deletions
+9 -1
View File
@@ -2,6 +2,8 @@ import { Schema, model, Types, Document } from 'mongoose';
export interface IUser extends Document {
_id: Types.ObjectId;
authId?: string;
authProvider?: string;
email: string;
firstName?: string;
lastName?: string;
@@ -26,9 +28,15 @@ export interface IUser extends Document {
const userSchema = new Schema<IUser>(
{
authId: {
type: String,
},
authProvider: {
type: String,
},
email: {
type: String,
required: true
required: true,
},
firstName: {
type: String