Commit Graph

97 Commits

Author SHA1 Message Date
Mrugesh Mohapatra
f908382e94 fix(api): linting issues with fastify (#65278) 2026-01-19 09:23:35 +01:00
Oliver Eyton-Williams
44f5cd6cfc feat: add user flags for all certifications (#64338)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2025-12-12 15:51:05 +02:00
Shaun Hamilton
c8395eb1db fix(api): add 401 to non user for exam routes (#64396) 2025-12-10 18:30:18 +05:30
Shaun Hamilton
d28fbdf081 feat: release rdb and python certs (#64253)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2025-12-09 19:55:36 +00:00
Jamesren64
c5676e3145 fix(auth): redirect users signing in from landing page to /learn (#63868)
Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2025-11-21 14:03:55 +03:00
Ahmad Abdolsaheb
03c775ac2d feat/ab test landing google auth (#62538) 2025-10-29 19:25:08 +05:30
Oliver Eyton-Williams
ae0a140c0c refactor(api): clean up test dbs when tests finish (#63149) 2025-10-28 21:14:56 +00:00
Shaun Hamilton
dd08d1ae1c chore(api): upgrade typebox to 1.0 (#62969)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2025-10-24 07:22:35 +05:30
Shaun Hamilton
ed568658c1 feat: add a2-english cert and exam (#62855) 2025-10-16 13:52:37 -07:00
Shaun Hamilton
ca02bcb7ee feat(api,client): add rwd and js v9 certs (#62458) 2025-10-15 09:06:42 -07:00
swdev33
b707f80d63 feat(client, api): bluesky profile link (#62400)
Co-authored-by: swdev33 <18295918+swdev33@users.noreply.github.com>
2025-10-09 09:07:12 +02:00
Mrugesh Mohapatra
3cbe2ab8b1 fix(tools): consolidate docker compose setup (#62525) 2025-10-07 10:49:41 +05:30
Mrugesh Mohapatra
ef610dd36c fix(tools): s/MailHog/Mailpit/g (#62481) 2025-10-03 13:25:33 -07:00
Oliver Eyton-Williams
51eba06a7d refactor: remove jest and lint vitest (#62330) 2025-09-24 09:27:03 +02:00
Oliver Eyton-Williams
bed3811952 feat(api): migrate to esm (#61915) 2025-09-19 13:28:06 +05:30
Ahmad Abdolsaheb
09dc696c29 feat: add email sign up alert (#61218)
Co-authored-by: Niraj Nandish <nirajnandish@icloud.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2025-09-11 10:14:00 +02:00
Oliver Eyton-Williams
d781102513 feat(api): add more debug logging (#61980) 2025-08-29 03:55:16 -07:00
Mrugesh Mohapatra
45c098d506 feat(api): s/jest/vitest/g (#61863)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2025-08-25 22:57:56 +05:30
Oliver Eyton-Williams
55fbe40152 fix(api): more informative auth errors (#61607) 2025-07-31 09:13:39 -05:00
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
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
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
27b1a21384 fix(api): log error correctly and differentiate logs (#60404) 2025-05-16 10:15:52 -05:00
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
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
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
Mrugesh Mohapatra
27689faf41 fix(api): adjust logging in bouncer, downgrade to trace (#59945) 2025-04-24 09:36:28 -05:00
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
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
Sem Bauke
f206ba2487 feat(api): add logging to Auth0 endpoint (#59160)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
2025-04-01 15:46:57 -05:00
Oliver Eyton-Williams
f6b57883e1 feat(api): set log level for csrf errors (#59228) 2025-03-13 22:24:41 +00:00
Sem Bauke
8bb352b67e chore(api): add logging for 404 not found requests (#59068)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2025-03-11 11:19:18 -05:00
Sem Bauke
d78ae931d3 feat(api) add logging for cookie clearing (#59058) 2025-03-11 10:43:28 -05:00
Sem Bauke
b9b94c3187 feat(api): add logging to bouncer (#59056) 2025-03-10 13:21:03 -05:00
Sem Bauke
d071676ae7 feat(api): add debug logging for security headers in response (#59070)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2025-03-10 12:57:23 -05:00
Oliver Eyton-Williams
e74bc4dfed fix(api): use req, not _req when logging (#59181) 2025-03-08 08:53:54 -06:00
Sem Bauke
9b0a63234d feat(api): add logging to cookie update (#59057) 2025-03-04 16:13:11 +02:00
Sem Bauke
9cb6677e9f feat(api): log disallowed origins (#59059) 2025-03-03 15:44:37 +02:00