Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
+5
-5
@@ -9,8 +9,8 @@ vi.mock("~/utils/api/.server/CryptoApi", () => ({
|
||||
},
|
||||
}));
|
||||
|
||||
vi.mock("@toolctrl/config", () => ({
|
||||
loadRequiredWebConfig: vi.fn(() => ({ appName: "ToolCTRL" })),
|
||||
vi.mock("@hivegrid/config", () => ({
|
||||
loadRequiredWebConfig: vi.fn(() => ({ appName: "HiveGrid" })),
|
||||
}));
|
||||
|
||||
vi.mock("~/utils/db/users.db.server", () => ({
|
||||
@@ -35,7 +35,7 @@ const vectorSecret = "GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ";
|
||||
|
||||
function generateExpectedCode(secret: string, timestamp: number): string {
|
||||
const totp = new OTPAuth.TOTP({
|
||||
issuer: "ToolCTRL",
|
||||
issuer: "HiveGrid",
|
||||
label: "test",
|
||||
algorithm: "SHA1",
|
||||
digits: 6,
|
||||
@@ -147,7 +147,7 @@ describe("services/auth/totp.server", () => {
|
||||
|
||||
test("startTotpEnrollment yields encrypted secret + parsable otpauth URI", async () => {
|
||||
const { startTotpEnrollment } = await import("./totp.server");
|
||||
const enrollment = startTotpEnrollment("person@example.com", { issuer: "ToolCTRL" });
|
||||
const enrollment = startTotpEnrollment("person@example.com", { issuer: "HiveGrid" });
|
||||
|
||||
expect(enrollment.secret).toMatch(/^[A-Z2-7]{32}$/);
|
||||
expect(enrollment.encryptedSecret).toBe(`encrypted:${enrollment.secret}`);
|
||||
@@ -191,7 +191,7 @@ describe("services/auth/totp.server", () => {
|
||||
const result = await createTotpEnrollmentForUser({
|
||||
userId: "user_1",
|
||||
userEmail: "security@example.com",
|
||||
issuer: "ToolCTRL Admin",
|
||||
issuer: "HiveGrid Admin",
|
||||
now,
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user