added auth v3 endpoints for login1 and login2

This commit is contained in:
Sheen Capadngan
2023-04-27 01:38:06 +08:00
parent 007e8c4442
commit f956170820
6 changed files with 318 additions and 6 deletions
+5 -1
View File
@@ -5,6 +5,7 @@ export interface ILoginSRPDetail {
clientPublicKey: string;
email: string;
serverBInt: mongoose.Schema.Types.Buffer;
userId: string;
expireAt: Date;
}
@@ -16,10 +17,13 @@ const loginSRPDetailSchema = new Schema<ILoginSRPDetail>(
},
email: {
type: String,
required: true,
unique: true
},
serverBInt: { type: mongoose.Schema.Types.Buffer },
userId: {
type: String,
unique: true,
},
expireAt: { type: Date }
}
);