userCtrl 1/3

PHOTO EMBED

Tue Sep 07 2021 22:00:15 GMT+0000 (UTC)

Saved by @devdave

// [1] IMPORT SECT.
// -
const bcrypt = require("bcrypt");
const User = require("../models/user");
const jwt = require("jsonwebtoken");
// dotEnv variables
const dotEnv = require("dotenv").config({ path: "./config/.env" });
content_copyCOPY