Commit Graph

759 Commits

Author SHA1 Message Date
karishmas6
037c7b597f feat: return Promise<string? 2024-09-25 18:43:43 +05:30
karishmas6
8d29edc634 feat: set password as string 2024-09-25 18:43:09 +05:30
karishmas6
5029f3728d chorE: remove unused import 2024-09-25 18:36:28 +05:30
karishmas6
b528efa75e feat: remove logic for hashing & comparsion from User model 2024-09-25 18:36:12 +05:30
karishmas6
a6e7e23114 chore: remove log 2024-09-25 18:15:03 +05:30
karishmas6
6bea5a2ad1 chore: lint 2024-09-25 18:08:35 +05:30
karishmas6
4931bb6f96 feat: use connection string 2024-09-25 18:08:19 +05:30
karishmas6
710b39c55d fix: dotenv config 2024-09-25 18:02:29 +05:30
karishmas6
ec2b5d1174 feat: pass cors options 2024-09-25 17:01:55 +05:30
karishmas6
aa72538e88 feat: print to console 2024-09-25 16:25:35 +05:30
karishmas6
b55536d8fd feat: send proper response 2024-09-25 16:16:49 +05:30
karishmas6
ce7291e048 feat: return error if !user 2024-09-25 15:59:33 +05:30
karishmas6
23e55deec7 feat: use body parser 2024-09-25 11:54:04 +05:30
karishmas6
c6564fbf00 chore: lint 2024-09-25 11:07:09 +05:30
karishmas6
61d65b1e26 chore: lint 2024-09-24 23:51:36 +05:30
karishmas6
f68c61c0ec feat: generate api key 2024-09-24 23:50:55 +05:30
karishmas6
a2e4c2dde0 fix: ts errors 2024-09-24 19:16:51 +05:30
karishmas6
e9d3b9fcb0 fix: set error type explicitly any 2024-09-24 19:07:02 +05:30
karishmas6
e6e54eee7f feat: connect && sync db 2024-09-24 18:03:26 +05:30
karishmas6
6c06cbf1d3 chore: lint 2024-09-24 18:00:38 +05:30
karishmas6
f671014444 feat: sync database 2024-09-24 18:00:25 +05:30
karishmas6
1bcc8d372b chore: remove unused import 2024-09-24 17:48:01 +05:30
karishmas6
1f2f505ac5 chore: remove unused import 2024-09-24 17:47:44 +05:30
karishmas6
33a3d71c93 feat: use comparePassword from utils 2024-09-24 17:47:30 +05:30
karishmas6
fd3d65e632 feat: exclude hashed password when return user 2024-09-24 17:46:35 +05:30
karishmas6
37dab830bf fix: remove hashedPassword var 2024-09-24 17:45:05 +05:30
karishmas6
26b08e510e feat: use hashPassword function 2024-09-24 17:43:28 +05:30
karishmas6
f5fa79faa9 chore: remove todo & unused dependencies 2024-09-24 17:40:55 +05:30
karishmas6
f0e685f339 chore: lint 2024-09-24 17:40:20 +05:30
karishmas6
d82171f7e3 fix: extend request to include user 2024-09-24 17:39:50 +05:30
karishmas6
7c36bd7245 feat: use User for current user 2024-09-24 17:33:51 +05:30
karishmas6
f26f8300d3 feat: use User for login 2024-09-24 17:31:56 +05:30
karishmas6
21a1ea3a5c feat: use User for register 2024-09-24 17:29:48 +05:30
karishmas6
24881daa6e chore: lint 2024-09-24 17:24:24 +05:30
karishmas6
87fa644ecf chore: lint 2024-09-24 17:24:11 +05:30
karishmas6
df998b4304 feat: create User model 2024-09-24 17:23:53 +05:30
karishmas6
31be279168 feat: postgres config 2024-09-24 17:19:49 +05:30
karishmas6
c80f04c0a9 feat: get csrf token 2024-09-24 00:05:22 +05:30
karishmas6
404eb797b9 feat: current user route 2024-09-24 00:01:32 +05:30
karishmas6
74ed86ba4b feat: logout route 2024-09-23 23:58:14 +05:30
karishmas6
72ce72304f feat: login route 2024-09-23 23:57:43 +05:30
karishmas6
ca175fdcae feat: register route 2024-09-23 23:57:12 +05:30
karishmas6
29f92cd094 feat: get current user 2024-09-23 23:55:53 +05:30
karishmas6
2758d05040 feat: logout controller 2024-09-23 23:55:41 +05:30
karishmas6
ab6838721f feat: login controller 2024-09-23 23:55:23 +05:30
karishmas6
89feed52d4 feat: register controller 2024-09-23 23:54:19 +05:30
karishmas6
8b8b233510 fix: missinge xports 2024-09-23 23:53:35 +05:30
karishmas6
e51ce53c68 chore: code cleanup 2024-09-23 23:48:35 +05:30
karishmas6
56a58d9c54 feat: parse cookies 2024-09-23 23:47:35 +05:30
karishmas6
4c045683ff feat: use csrf protection 2024-09-23 23:47:10 +05:30