Commit Graph

42 Commits

Author SHA1 Message Date
Alex Holliday
a0248c81c2 standardize log statements 2024-10-24 15:28:13 +08:00
Alex Holliday
90dfa09b10 Merge branch 'develop' into fix/be/prettier-baseline 2024-10-18 10:01:54 +08:00
Rushi Gandhi
fe503353c5 remove handleError from verifyJWT 2024-10-17 12:26:34 +05:30
Rushi Gandhi
090f0df3e8 Merge branch 'develop' into 915-be-add-middeware-for-verification-of-refresh-token 2024-10-17 12:01:43 +05:30
Rushi Gandhi
3e9593fa23 Refactor verifyJWT middleware to handle refresh tokens alongside access token 2024-10-17 11:58:13 +05:30
Alex Holliday
fd2d16cf78 Format all files on BE with perttier config 2024-10-17 12:07:30 +08:00
Rushi Gandhi
412ac3312b use jwt.verify instead of jwt.decoded to verify authenticity of token 2024-10-16 20:20:08 +05:30
Rushi Gandhi
e6068bfdc4 Add middleware that verifies refresh token 2024-10-16 18:27:29 +05:30
Alex Holliday
f057807b56 migrate to esm 2024-10-15 11:57:37 +08:00
Alex Holliday
5d9b1dd6ef Add authController.editUser tests, remove unused imports from 2024-10-10 12:16:30 +08:00
Alex Holliday
8578304ca4 refactor validation error and general error handling to reduce code duplicatoin 2024-10-10 08:59:44 +08:00
Alex Holliday
4a3636789e Add token expired msg 2024-10-07 13:54:00 +08:00
Alex Holliday
6c598b976f Move db models to db folder 2024-10-01 10:01:25 +08:00
Alex Holliday
6268b2573c remove jwtSecret from settings 2024-09-30 11:14:53 +08:00
Alex Holliday
11b97ab3b4 add update settings method, remove all env var references possible 2024-09-26 14:37:11 +08:00
Alex Holliday
888f644c7c user -> User 2024-09-26 10:28:48 +08:00
Alex Holliday
9381f842f3 Add service name and method name to errors in misc services and middleware 2024-09-15 12:28:11 +08:00
Alex Holliday
9bbd5ce12a Add validation for updateTTL body 2024-09-14 12:16:13 +08:00
Alex Holliday
df16bf3db5 Moved http/ping specific data 2024-09-04 11:25:08 -07:00
Alex Holliday
5bd13a572e Add middleware for verifying roles, use middleware on appropriate routs 2024-08-27 10:39:55 -07:00
Alex Holliday
bad0039757 renamed verifyAdmin to verifySuperAdmin 2024-08-26 15:36:53 -07:00
Alex Holliday
48bd6ec95a Updated verifyAdmin middleware 2024-08-26 15:34:50 -07:00
Alex Holliday
5ea1b15e9e Merge remote-tracking branch 'upstream/develop' into fix/remove-double-login-protection 2024-08-15 11:48:41 -07:00
Alex Holliday
ae46527965 removed double login prevention 2024-08-15 11:39:45 -07:00
Alex Holliday
aa528722e1 Updated parameters passed to for certificate check 2024-08-14 19:02:11 -07:00
Alex Holliday
0cc7751d2e Decoupled JWT from DB 2024-08-10 10:20:06 -07:00
Alex Holliday
a2ff5d9b56 Revoke token from user on JWT verification failure in middleware 2024-08-09 13:53:10 -07:00
Alex Holliday
8e6cd0de71 Added verifyAdmin middleware. Implemented getAllUsers route 2024-07-22 11:49:22 -07:00
Alexander Holliday
7d78d054ba Merge pull request #231 from bluewave-labs/feat/image-upload
Feat/image upload, resolves #221
2024-07-02 12:33:49 -07:00
Alex Holliday
50f219249b Added special case for User document 2024-07-02 10:20:10 -07:00
Alex Holliday
e8d4a5d868 Add profileImage to schema, controllers, and routes 2024-07-01 11:48:56 -07:00
Alex Holliday
59562b10c9 Improved network service error handling 2024-06-18 11:42:25 -07:00
Alex Holliday
6801d066a1 Added delete cascade for Montiors. Alerts and Checks now also deleted 2024-06-17 12:08:41 -07:00
Alex Holliday
5da22f4403 Refactored hardcoded error messages to util file. Added logging to job queue 2024-06-14 13:45:45 -07:00
Alex Holliday
08565c9eda Simplified form control in Login and Register. Fixed registration bug. Throw better errors 2024-06-12 13:30:56 -07:00
Alex Holliday
78abdd7f70 Fixed bug in error handler, finished implementing update user endpoint 2024-05-27 12:03:32 -07:00
Alex Holliday
d84a0f9c87 Started update user route 2024-05-27 11:57:25 -07:00
Alex Holliday
5fa73a1f17 Added documentation for error handling 2024-05-27 11:03:12 -07:00
Alex Holliday
950222f94e Implemented error handling middleware 2024-05-27 10:47:14 -07:00
Alex Holliday
ef8867658e Removed package-lock.json from root 2024-05-24 13:44:42 -07:00
Alex Holliday
073f8b2e30 Added verification middleware, protected monitor routes 2024-05-22 11:38:36 -07:00
Alex Holliday
7dbd3b28d2 Refactored issuing token to function 2024-05-22 10:53:58 -07:00