Commit Graph

682 Commits

Author SHA1 Message Date
Alex Holliday
cbd3aed290 Remove log statements from 2024-10-19 16:38:18 +08:00
Alex Holliday
849b8a1e9b Add tests for networkService 2024-10-18 14:23:21 +08:00
Alex Holliday
64d2d9b3ce Move opeartion back to 2024-10-18 14:21:22 +08:00
Alex Holliday
f5265b140c Minor refactor for correctness 2024-10-18 13:36:39 +08:00
Alex Holliday
1c30c309a7 Refactor network service to inject dependencies 2024-10-18 11:12:18 +08:00
Alex Holliday
f9495171b1 Fix merge conflict error 2024-10-18 11:00:46 +08:00
Alex Holliday
9a32362ab6 Merge branch 'develop' into feat/be/email-service-tests 2024-10-18 10:53:31 +08:00
Alexander Holliday
59392d0194 Merge pull request #975 from bluewave-labs/fix/be/ssl-checker
Add ssl-checker, refactor fetchMonitorCertificate
2024-10-18 10:05:10 +08:00
Alex Holliday
53fe22b517 Fix merge conflict 2024-10-18 10:02:33 +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
Alex Holliday
97bc08fa63 Add tests for EmailService 2024-10-17 14:33:31 +08:00
Alex Holliday
ae223b4c62 Inject dependencies into EmailService 2024-10-17 14:33:18 +08:00
Alex Holliday
b69d495206 Remove redundant try/catch block 2024-10-17 14:32:18 +08:00
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
17ed90f76b Refactor EmailService to inject dependencies 2024-10-17 14:00:22 +08:00
Alex Holliday
8bdade2774 Merge branch 'develop' into fix/be/prettier-baseline 2024-10-17 13:39:23 +08:00
Alex Holliday
c0ae2fac77 Add tests for util functions 2024-10-17 13:09:50 +08:00
Alex Holliday
fd2d16cf78 Format all files on BE with perttier config 2024-10-17 12:07:30 +08:00
Alex Holliday
79cf169ede Add ssl-checker, refactor fetchMonitorCertificate 2024-10-17 11:57:37 +08:00
Alex Holliday
63e39ed50d Resolve conflicts, update tests 2024-10-17 10:54:31 +08:00
Alex Holliday
81f1fe4694 Merge branch 'develop' into feat/be/esm 2024-10-17 10:42:57 +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
Alexander Holliday
7d8ffcd4a5 Merge pull request #960 from Rushi1109/915-be-generate-refresh-token
Generate refresh token & add it to response
2024-10-16 19:40:59 +08:00
Rushi Gandhi
111f7d5a67 remove if/else by using ternary operator 2024-10-16 14:13:48 +05:30
Rushi Gandhi
7a3d2619f6 add testcases for refresh token 2024-10-16 12:46:44 +05:30
Rushi Gandhi
29ce8bb116 Refactor issueToken function for issueing the refresh token 2024-10-16 12:45:31 +05:30
Alex Holliday
4a05157eb3 Fix coverage for auth 2024-10-16 14:17:35 +08:00
Alex Holliday
c356843799 Add tests for fetchCertificates 2024-10-16 13:22:39 +08:00
Alex Holliday
81d3b8dcb5 Use new fetchMonitorCertificate method, prettier formatting 2024-10-16 11:47:12 +08:00
Alex Holliday
5f6e0631c6 Prettier formatting 2024-10-16 11:46:37 +08:00
Alex Holliday
3ace148dc9 Prettier formatting 2024-10-16 11:46:03 +08:00
Alex Holliday
05dae6b060 Add missing variable def to User model 2024-10-16 11:45:38 +08:00
Alex Holliday
7b8e5a1870 Remove ssl-checker 2024-10-16 11:44:49 +08:00
Alex Holliday
ced1bf9788 Refactor getting certificate to use TLS instead of SSL-checker 2024-10-16 11:44:36 +08:00
Alex Holliday
35ddd20dcc Merge branch 'develop' into feat/be/esm 2024-10-16 10:57:24 +08:00
Alex Holliday
19dc8c2463 Fix typo in package.json 2024-10-15 21:47:55 +08:00
Alexander Holliday
8218bc9a9c Merge branch 'develop' into chore/addPrettierConfig 2024-10-15 21:43:18 +08:00
Caio Cabral
38b837d3b0 fix: setting prettier as dev dependency 2024-10-15 07:45:59 -04:00
Rushi Gandhi
cd0160f421 Pass whole user object instead of just _id 2024-10-15 15:55:29 +05:30
Rushi Gandhi
581b6217a9 Update appSetting for refresh token & Update documentation 2024-10-15 14:11:47 +05:30
Rushi Gandhi
05c051ae3a Generate refresh token & add it to response 2024-10-15 12:30:24 +05:30
Alex Holliday
0bf271eca8 use C8 instead of nyc for test coverage 2024-10-15 14:06:22 +08:00
Alex Holliday
896b3437e5 Migrate tests to ESM 2024-10-15 14:00:24 +08:00
Alex Holliday
f057807b56 migrate to esm 2024-10-15 11:57:37 +08:00
Alex Holliday
75238978e9 updated tests for full coverage 2024-10-14 15:23:38 +08:00
Alex Holliday
f34b8466cd Add tests for updateAppSettings 2024-10-14 13:38:53 +08:00
Alex Holliday
e4c12bb3d9 Add tests for getAppSettings 2024-10-14 13:34:11 +08:00