Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. import bcrypt from "bcrypt-nodejs";
  2. import crypto from "crypto";
  3. import mongoose from "mongoose";
  4.  
  5. export type UserDocument = mongoose.Document & {
  6. email: string;
  7. password: string;
  8. passwordResetToken: string;
  9. passwordResetExpires: Date;
  10.  
  11. facebook: string;
  12. tokens: AuthToken[];
  13.  
  14. profile: {
  15. name: string;
  16. gender: string;
  17. location: string;
  18. website: string;
  19. picture: string;
  20. };
  21.  
  22. comparePassword: comparePasswordFunction;
  23. gravatar: (size: number) => string;
  24. };
  25.  
  26. type comparePasswordFunction = (candidatePassword: string, cb: (err: any, isMatch: any) => {}) => void;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement