Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bcrypt from "bcrypt-nodejs";
- import crypto from "crypto";
- import mongoose from "mongoose";
- export type UserDocument = mongoose.Document & {
- email: string;
- password: string;
- passwordResetToken: string;
- passwordResetExpires: Date;
- facebook: string;
- tokens: AuthToken[];
- profile: {
- name: string;
- gender: string;
- location: string;
- website: string;
- picture: string;
- };
- comparePassword: comparePasswordFunction;
- gravatar: (size: number) => string;
- };
- type comparePasswordFunction = (candidatePassword: string, cb: (err: any, isMatch: any) => {}) => void;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement