From 6e3aa82afa11d71182b4256b0bafcd9fce76fe3e Mon Sep 17 00:00:00 2001 From: Divyansh Seth Date: Sun, 9 Jun 2024 02:58:14 +0530 Subject: [PATCH] backend: created user model and authMiddleware This commit adds: - User Model: Created with name and password fields. - Auth Middleware: JWT authentication middleware. - User controller: Login and Register user. - Auth Endpoints: Register and login endpoints. Fixes: #62 --- .DS_Store | Bin 8196 -> 0 bytes backend/.DS_Store | Bin 6148 -> 0 bytes backend/src/middlewares/authMiddleware.ts | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 .DS_Store delete mode 100644 backend/.DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 4b3d17830b6f63b59f484d8db907f3252285f680..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8196 zcmeHM&2JM&6n_)kc$XB|5IY3ggM}|h1PB2HsH!j~s6>1O#V9x=V0OJ@XO;DiwYyFV zQ6!%Ws?+II1T)gi@9n&gdGlM(uHG5| zNV(%42bcf=13O1+1cwhauID|~hSba$B0+!fo5w44)@r9L^@L_XGoTsJ3}^;41D^{6 z_|E3d81UYgT0Lq8Gy`8H1N`|=z|OIxuq#nKI&csr0AdEGMMK%*0%Ad7NnuwaYOoRM ziYQ%)Dlv$3$N7S?D=F+sl9Rq8>E^nt?O}ymrsPQD}k( zabNv@;MX@vU5m}kI6iZ5&e(VQ8oV(6Jm0T(KdNu9B)$z?7N<1ZTNhTK15V%SF!m6m zZ?j0|FxlETvXBuuq^!0w8En;;4~S0|S#ZFHI;;YP0Ni9g!@0QwBA-5sWIoSMbvn-_ zC)?t**j7G+t&;f|7ezh>G#~_qxx_LfXFY1Gd+>+T_Pr>cntDlwc4WR8&SuT*NcMJR zg{@a&JMKhfJ6z&dHyHDso@_e{9$l|lxeF|aZ7-mqaPVA;Cd)Uyz-8-Y)(PB5_*SIC zG!3(6O>AtOI5Ra_n4UhlIa$~^JB{+G=@Xlqrjaim`(eJe>bC;+3$lcbsK+$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