Please enable JavaScript.
Coggle requires JavaScript to display documents.
duckstacks - Coggle Diagram
duckstacks
routes
/register-admin
/register-sponsor
/register-doctor
/register-consultant
/login-admin
/login-sponsor
/login-doctor
/login-consultant
protected routes (YET TO DO!)
Middleware
checking user
token extract
model
userSchema
fName
lName
fullName
role(enum)
email
password
createdAt
utils
auth.js
commonUserRegister function
commonUserLogin function
hasingPassword
controllers
(YET TO DO)