Commit Graph

306 Commits

Author SHA1 Message Date
Mrugesh Mohapatra
6848da8320 Merge commit from fork
httpOnly (invisible to JS) and secure (https only) are now used. In
order to update existing users without requiring them to
re-authenticate, each request sets those properties on the cookie.

Finally, the maxAge is now 30 days and is also updated on each request.
i.e. it's a rolling 30 days.

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2025-06-25 19:43:44 +05:30
Oliver Eyton-Williams
87c274a9ef feat(api): allow HOME_LOCATION origin in development (#61003) 2025-06-25 12:00:24 +05:30
Oliver Eyton-Williams
722131407b fix(api): duplicate reply on error in /daily-coding-challenge-completed (#60999) 2025-06-23 08:15:26 -05:00
Clarence Bakosi
ec764ef7cb chore(curriculum): change to US spelling (#60852) 2025-06-17 09:32:03 -07:00
Mrugesh Mohapatra
44e734398f fix(env): remove unused keys (#60878) 2025-06-15 19:16:30 +05:30
Oliver Eyton-Williams
a9dc3bdeef chore(api): add user's id to errors sent to Sentry (#60725) 2025-06-09 22:21:02 +02:00
Oliver Eyton-Williams
89402caa9d chore(api): migrate to fastify v5 (#57576) 2025-06-02 08:07:57 +05:30
Oliver Eyton-Williams
85bda9c63d fix: handle when userinfo has no email address (#60557) 2025-05-30 22:32:55 +05:30
Oliver Eyton-Williams
22724d5dda test: inform devs when db connection not established (#60539) 2025-05-28 10:52:11 -05:00
Oliver Eyton-Williams
3cde3e17d6 refactor: remove unused format rules from response schema (#60538) 2025-05-27 09:16:32 -07:00
Oliver Eyton-Williams
50c0194ee4 test(api): stop reporting request logs during testing (#60546) 2025-05-27 21:35:25 +05:30
Oliver Eyton-Williams
0b1db2b9c6 fix(api): handle expected Auth0 errors (#60499) 2025-05-27 09:51:03 +05:30
Oliver Eyton-Williams
8138f086aa fix(api): handle string challengeType (#60491) 2025-05-23 18:26:18 +05:30
Oliver Eyton-Williams
848ae3aacf fix(api): handle users without email addresses (#60467) 2025-05-22 11:28:56 +02:00
Oliver Eyton-Williams
8f6a8d0401 fix(api): handle null picture (#60468) 2025-05-21 09:50:29 -07:00
Shaun Hamilton
5e836cbdb4 dev(api): track sentry releases (#60444) 2025-05-21 17:28:03 +05:30
Oliver Eyton-Williams
7003362fef fix(api): handle concurrent deletion requests (#60430) 2025-05-19 19:55:22 +05:30
Oliver Eyton-Williams
a5ec9e1ee7 fix(api): handle when emailVerified is null (#60429) 2025-05-19 11:18:10 +00:00
Shaun Hamilton
00264908e8 fix(api): remove authn requirement for coderoad challenges (#60425)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2025-05-19 16:23:43 +05:30
Shaun Hamilton
8558d0b1f1 fix(api): catch invalid ms-username url (#60402)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2025-05-19 16:23:24 +05:30
Shaun Hamilton
990b862d41 chore(api): log duplicate account ids (#60405) 2025-05-17 09:11:41 +05:30
Oliver Eyton-Williams
27b1a21384 fix(api): log error correctly and differentiate logs (#60404) 2025-05-16 10:15:52 -05:00
Oliver Eyton-Williams
f5b0071a68 fix(api): handle Date values for completedChallenge.completedDate (#60400) 2025-05-16 17:29:06 +05:30
Shaun Hamilton
3a146ec946 chore(api): add more auth0 plugin logs (#60398)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2025-05-16 12:47:47 +02:00
Oliver Eyton-Williams
7d420d9214 fix(api): change csrf logLevel (#60371) 2025-05-15 09:12:29 -05:00
Mrugesh Mohapatra
7e76946a07 fix(api): sending incorrect object in log (#60372) 2025-05-15 09:02:25 -05:00
Mrugesh Mohapatra
eeeeb034ec fix(api): deduplicating objects in logs (#60319) 2025-05-13 20:40:49 +05:30
Tom
f908548246 feat(api): add endpoint for submitting daily coding challenges (#59465)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2025-05-12 17:26:32 +02:00
Mrugesh Mohapatra
8a6fcd70db fix(api): update logging (#60210) 2025-05-07 15:30:32 +05:30
Mrugesh Mohapatra
ff43f3aeca fix(api): whitespace in default values (#60199) 2025-05-07 01:52:42 +05:30
Mrugesh Mohapatra
dc5c7893b5 fix(api): update logs in user.ts (#60193) 2025-05-06 23:49:24 +05:30
Mrugesh Mohapatra
d0e63c60ca fix(api): add req id to logs (#60191) 2025-05-06 22:20:31 +05:30
Mrugesh Mohapatra
008e35d851 fix(api): update logging (#60187) 2025-05-06 20:46:36 +05:30
Mrugesh Mohapatra
a905083bf8 chore(api): improve log statements (#59992) 2025-04-25 10:34:03 +00:00
Mrugesh Mohapatra
fada6f08f8 fix(api): add req to the child logger (#59961) 2025-04-24 19:35:57 +00:00
Mrugesh Mohapatra
ff38233f96 fix(api): adjust levels for cookie related logs (#59946) 2025-04-24 19:20:07 +00:00
Shaun Hamilton
46b910ee40 dev(api): add build options to test env (#59957) 2025-04-24 22:33:49 +05:30
Mrugesh Mohapatra
2fd7344555 fix(api): adjust logs in email-subscription (#59944) 2025-04-24 09:37:45 -05:00
Mrugesh Mohapatra
27689faf41 fix(api): adjust logging in bouncer, downgrade to trace (#59945) 2025-04-24 09:36:28 -05:00
Oliver Eyton-Williams
ae387fbd5c refactor(api): organise tooling (#59931) 2025-04-24 10:27:23 +05:30
Mrugesh Mohapatra
3c822da243 fix(api): catch GB init errors on prod only (#59912)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2025-04-24 10:26:33 +05:30
Oliver Eyton-Williams
db07c718b9 fix: only log if the request has an Origin header (#59920) 2025-04-23 22:50:12 +02:00
Oliver Eyton-Williams
37028f2bb8 chore(api): log growthbook initialization failures (#59889)
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2025-04-22 18:36:27 +02:00
Shaun Hamilton
6478bea038 feat(api): add user id to user report (#59816) 2025-04-22 09:28:16 -05:00
Oliver Eyton-Williams
fdbca0bd1f fix(api): skip cors logging for /status/* routes (#59881)
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2025-04-22 14:05:49 +00:00
Mrugesh Mohapatra
1cab0991b5 fix(api): adjust logs (#59887) 2025-04-22 15:58:26 +02:00
Oliver Eyton-Williams
cc1b31f59d chore(api): throw if growthbook env vars are missing (#59873) 2025-04-22 07:41:09 +00:00
Mrugesh Mohapatra
ae720e8282 feat(api): add deployment version endpoint (#59841) 2025-04-21 14:30:20 -05:00
Oliver Eyton-Williams
6ab9f57d69 feat(api): deprecate /api endpoints (#59657) 2025-04-10 17:04:20 +05:30
Oliver Eyton-Williams
087d17abe6 feat(api): copy /api endpoints (#59283)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2025-04-04 11:55:43 +00:00