feat(auth): setup login and sign up and can use email or username

This commit is contained in:
2025-12-30 21:04:26 -06:00
parent ff2cd7e9f8
commit 9eeede7fbe
14 changed files with 563 additions and 34 deletions

View File

@@ -22,5 +22,27 @@
"\tsubModule: \"${2:start up}\",",
"});"
]
},
"Create Example Route Template":{
"prefix": "createRoute",
"body":[
"import { Router } from \"express\";",
"\timport { apiReturn } from \"../utils/returnHelper.utils.js\";",
"\tconst r = Router();",
"\tr.post(\"/\", async (req, res) => {",
"\t",
"\tapiReturn(res, {",
"\tsuccess: true,",
"\tlevel: \"info\", //connect.success ? \"info\" : \"error\",",
"\tmodule: \"routes\",",
"\tsubModule: \"auth\",",
"\tmessage: \"Testing route\",",
"\tdata: [],",
"\tstatus: 200, //connect.success ? 200 : 400,",
"});",
"});",
"\texport default r;"
]
}
}