Marc-André Bombeck
ee1561496b
refactor(auth): move the request guards out of api-handler into lib/auth/guards
...
api-handler.ts held two modules: the route wrapper and thirteen guards. The
guards now live in lib/auth/guards/, one module per family (the caller,
the acting-account carrier, the record modes, the cookie-only helpers, the
fresh-factor and recent-proof gates, the Bearer elevation, MFA management).
api-handler.ts keeps the wrapper and re-exports every guard, so it stays the
one public entry and no route changes its import.
The bodies move verbatim; only the version prefixes of moved comments are
dropped. The structural guards that read the auth layer now find the module
that declares a guard by name (helpers/auth-guards.ts) instead of a fixed
path, and a new guard holds the entry: nothing outside the folder but
api-handler.ts imports a guard module.
2026-10-23 10:54:23 +02:00
..
2026-10-20 09:08:40 +02:00
2026-10-15 22:05:06 +02:00
2026-10-15 23:12:51 +02:00
2026-09-10 04:55:19 +02:00
2026-10-20 09:48:15 +02:00
2026-10-15 22:05:06 +02:00
2026-06-19 22:20:31 +02:00
2026-10-20 05:43:58 +02:00
2026-06-03 08:56:19 +02:00
2026-09-03 05:49:13 +02:00
2026-10-20 09:08:40 +02:00
2026-10-20 05:53:37 +02:00
2026-06-19 22:20:31 +02:00
2026-08-02 02:32:24 +02:00
2026-10-19 14:57:00 +02:00
2026-10-22 05:32:48 +02:00
2026-10-20 09:08:40 +02:00
2026-10-20 09:08:40 +02:00
2026-09-05 17:06:34 +02:00
2026-07-18 01:23:37 +02:00
2026-05-17 00:39:58 +02:00
2026-10-22 15:08:14 +02:00
2026-07-21 00:05:03 +02:00
2026-10-20 09:08:40 +02:00
2026-10-20 09:08:40 +02:00
2026-07-26 00:45:08 +02:00
2026-10-23 08:14:32 +02:00
2026-06-14 17:57:21 +02:00
2026-09-26 15:20:42 +02:00
2026-10-20 09:08:40 +02:00
2026-10-20 09:08:40 +02:00
2026-10-20 09:08:40 +02:00
2026-10-03 18:44:06 +02:00
2026-10-20 09:08:40 +02:00
2026-10-20 09:08:40 +02:00
2026-10-22 14:50:00 +02:00
2026-08-08 01:05:44 +02:00
2026-10-20 09:08:40 +02:00
2026-09-26 22:45:51 +02:00
2026-07-19 14:16:02 +02:00
2026-10-01 22:07:07 +02:00
2026-10-23 08:13:56 +02:00
2026-10-04 10:43:00 +02:00
2026-10-08 22:57:47 +02:00
2026-10-20 09:08:40 +02:00
2026-08-06 04:01:00 +02:00
2026-06-26 13:22:21 +02:00
2026-10-21 20:26:15 +02:00
2026-05-08 12:07:46 +02:00
2026-10-03 21:38:03 +02:00
2026-06-12 18:10:21 +02:00
2026-09-26 17:07:02 +02:00
2026-10-21 19:11:23 +02:00
2026-05-21 22:07:32 +02:00
2026-04-18 17:15:43 +02:00
2026-09-10 19:08:04 +02:00
2026-05-08 14:33:39 +02:00
2026-10-20 09:08:40 +02:00
2026-09-05 16:22:39 +02:00
2026-10-20 09:08:40 +02:00
2026-09-10 04:55:47 +02:00
2026-06-19 22:20:31 +02:00
2026-09-24 12:08:39 +02:00
2026-10-23 10:54:23 +02:00
2026-10-17 09:17:03 +02:00
2026-10-17 09:17:03 +02:00
2026-10-20 20:56:08 +02:00
2026-10-20 20:56:08 +02:00
2026-08-31 08:46:16 +00:00
2026-06-11 21:17:27 +02:00
2026-10-22 13:01:10 +02:00
2026-09-10 19:08:04 +02:00
2026-07-29 15:54:01 +02:00
2026-07-29 15:54:01 +02:00
2026-09-26 16:31:03 +02:00
2026-10-08 11:18:14 +02:00
2026-05-09 02:27:17 +02:00
2026-10-22 10:20:28 +02:00
2026-09-26 20:59:10 +02:00
2026-06-07 14:41:15 +02:00
2026-09-05 17:06:34 +02:00
2026-07-17 17:30:04 +02:00
2026-10-23 02:04:21 +02:00