Updates as I integrate

This commit is contained in:
2023-05-30 17:44:50 -04:00
parent ec61e29fb0
commit 64e1f53f4e
7 changed files with 19 additions and 11 deletions

View File

@@ -7,6 +7,7 @@ import { StrategyDocument } from './strategy';
import { verify } from '../utils/password';
export interface Auth {
handle?: string;
is2FA?: boolean;
record: StringSchemaDefinition;
username: string;
@@ -35,6 +36,7 @@ export interface AuthModel extends Model<AuthDocument> {
export const AuthSchema = new Schema<AuthDocument, AuthModel>(
{
handle: { type: String },
is2FA: { type: Boolean, default: false },
record: { type: Types.ObjectId, unique: true },
status: {