Harden CMS security and theme contrast

This commit is contained in:
Simo committed 2026-07-11 20:27:20 +02:00
1 parent 2465ff2170
commit 4a1e1115b3
57 files changed
+1023 -231

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import { describe, expect, it } from "vitest";
import { personalTokenScope } from "@/lib/auth/personal-token-scope";
describe("personalTokenScope", () => {
it("scopes token operations to the user model and owner id", () => {
expect(personalTokenScope(42)).toEqual({
tokenableId: 42n,
tokenableType: "App\\Models\\User",
});
});
});