freeCodeCamp/api/src/plugins
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
..
__fixtures__ feat(api): add endpoint for submitting daily coding challenges (#59465) 2025-05-12 17:26:32 +02:00
mail-providers fix(mailhog): use docker network address in containers (#54877) 2024-05-23 11:21:32 +02:00
auth0.test.ts feat(api): allow HOME_LOCATION origin in development (#61003) 2025-06-25 12:00:24 +05:30
auth0.ts fix: handle when userinfo has no email address (#60557) 2025-05-30 22:32:55 +05:30
auth-dev.test.ts test: inform devs when db connection not established (#60539) 2025-05-28 10:52:11 -05:00
auth-dev.ts refactor(api): sync dev and auth0 plugins (#57136) 2024-11-12 15:06:54 -08:00
auth.test.ts Merge commit from fork 2025-06-25 19:43:44 +05:30
auth.ts Merge commit from fork 2025-06-25 19:43:44 +05:30
bouncer.test.ts feat(api): redirect auth requests if already signed in (#55829) 2024-08-14 18:53:20 +05:30
bouncer.ts fix(api): update logging (#60187) 2025-05-06 20:46:36 +05:30
cookie-update.test.ts feat(api): add plugin allowing server to update cookies (#55395) 2024-07-09 07:33:04 +00:00
cookie-update.ts fix(api): adjust levels for cookie related logs (#59946) 2025-04-24 19:20:07 +00:00
cookies.test.ts refactor(api): use decorator to clear our cookies (#55470) 2024-07-15 10:17:40 +02:00
cookies.ts fix(api): adjust levels for cookie related logs (#59946) 2025-04-24 19:20:07 +00:00
cors.test.ts fix: only log if the request has an Origin header (#59920) 2025-04-23 22:50:12 +02:00
cors.ts fix(api): update logging (#60187) 2025-05-06 20:46:36 +05:30
csrf.test.ts chore(api): migrate to fastify v5 (#57576) 2025-06-02 08:07:57 +05:30
csrf.ts fix(api): change csrf logLevel (#60371) 2025-05-15 09:12:29 -05:00
error-handling.test.ts chore(api): improve log statements (#59992) 2025-04-25 10:34:03 +00:00
error-handling.ts chore(api): improve log statements (#59992) 2025-04-25 10:34:03 +00:00
growth-book.test.ts fix(api): catch GB init errors on prod only (#59912) 2025-04-24 10:26:33 +05:30
growth-book.ts fix(api): catch GB init errors on prod only (#59912) 2025-04-24 10:26:33 +05:30
mailer.test.ts chore(api): migrate to fastify v5 (#57576) 2025-06-02 08:07:57 +05:30
mailer.ts chore(api): migrate to fastify v5 (#57576) 2025-06-02 08:07:57 +05:30
not-found.test.ts feat(api): redirect on error if request ACCEPTs html (#56445) 2024-10-03 16:10:25 -07:00
not-found.ts fix(api): update logging (#60187) 2025-05-06 20:46:36 +05:30
redirect-with-message.test.ts feat(api): allow redirection with message (#50525) 2023-06-07 15:30:12 +02:00
redirect-with-message.ts feat(api): port /confirm-email to new api (#54975) 2024-06-27 10:07:53 +02:00
security.ts fix(api): adjust logs (#59887) 2025-04-22 15:58:26 +02:00
shadow-capture.ts chore: upgrade eslint (#58575) 2025-02-07 22:48:43 +02:00