Commit Graph

666 Commits

Author SHA1 Message Date
Rushi Gandhi 043698e535 add endpoint to refresh auth token 2024-10-17 17:01:36 +05:30
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 c0ae2fac77 Add tests for util functions 2024-10-17 13:09:50 +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
Alex Holliday 98136c5fb1 fixed accidentally nested test 2024-10-14 13:27:03 +08:00
Alex Holliday fde9303b8f Add tests for obliterate 2024-10-14 13:23:40 +08:00
Alex Holliday b063fa267a add test for addJob 2024-10-14 13:17:08 +08:00
Alex Holliday 61518f898b Add queue controller tests for getMetrics and getJobs 2024-10-14 13:13:36 +08:00
Alex Holliday ed3b008016 Add queue controller tests for getMetrics and getJobs 2024-10-14 13:13:13 +08:00
Alex Holliday 2ac60441a3 Fix deleteAllMonitors test 2024-10-14 11:59:15 +08:00
Alex Holliday 27d5bce9e3 Add tests for complete coverage, fix active -> isActive 2024-10-14 11:57:39 +08:00
Alex Holliday 607b16d1cd Add tests for addDemoMonitors 2024-10-14 11:36:49 +08:00
Alex Holliday 516212b1b0 Add tests for pauseMonitor method 2024-10-14 11:29:04 +08:00
Alex Holliday 2cf4c93cb0 Add tests for editMonitor 2024-10-14 11:18:23 +08:00
Alex Holliday bdde060f7f Add tests for deleteAllMonitors 2024-10-14 11:06:45 +08:00
Alex Holliday 9daa680701 Add tests for deleteMonitor 2024-10-14 10:13:54 +08:00
Alex Holliday 5d1ad0d92f Add tests for createMonitor 2024-10-14 09:53:08 +08:00
Alex Holliday a0b651fd24 Added getMoniotrsByTeamId tests 2024-10-14 09:43:47 +08:00
Alex Holliday 73e087982b Add tests for getMonitorsAndSummaryByTeamId 2024-10-11 15:10:54 +08:00
Alex Holliday 586b18d295 Add tests for getMonitorById 2024-10-11 15:07:37 +08:00