Add JWT authentication #7

Merged
robin merged 3 commits from dev into main 2026-07-21 13:49:49 +02:00
Showing only changes of commit 1cdb0ebefa - Show all commits
+1 -1
View File
@@ -14,7 +14,7 @@ func JSON(ctx context.Context, w http.ResponseWriter, status int, data any) {
w.WriteHeader(http.StatusInternalServerError)
_, err := w.Write([]byte(`{"error": "internal server error: failed to marshal response"}`))
if err != nil {
slog.ErrorContext(ctx, "failed to write json", slog.Any("error", err))
slog.ErrorContext(ctx, "failed to marshal json", slog.Any("error", err))
return
}
return