mrhid6 2685e9ad06 fix: Distinguish caller mistakes from backend failures in CreateAPIToken
createToken's catch-all mapped every unmatched error to 400, so a
database outage reported itself as a malformed client request. Wrap the
genuine validation failures with ErrTokenInvalid and let the handler
answer 500 with a fixed message for everything else.
2026-08-12 14:48:17 +00:00
2026-08-07 10:21:00 +01:00
2026-07-24 09:51:30 +01:00
2026-07-28 15:07:19 +01:00
2026-08-12 14:44:50 +00:00
2026-07-29 10:35:07 +01:00
2026-08-11 15:03:03 +00:00
2026-08-12 10:52:43 +00:00
2026-07-26 14:46:38 +01:00
2026-07-28 10:30:29 +01:00
S
Description
No description provided
9.7 MiB
Languages
JavaScript 63.9%
Go 19.3%
TypeScript 16.6%