Updates as I integrate
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user