Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Fix: Add auth method and organization ID to test JWT
Daniel Hougaardd1ebdbcc03e9
diff --git a/backend/e2e-test/vitest-environment-knex.ts b/backend/e2e-test/vitest-environment-knex.tsindex c1c750225e..09ab054436 100644--- a/backend/e2e-test/vitest-environment-knex.ts+++ b/backend/e2e-test/vitest-environment-knex.ts@@ -10,7 +10,7 @@ import { seedData1 } from "@app/db/seed-data";import { initEnvConfig } from "@app/lib/config/env";import { initLogger } from "@app/lib/logger";import { main } from "@app/server/app";-import { AuthTokenType } from "@app/services/auth/auth-type";+import { AuthMethod, AuthTokenType } from "@app/services/auth/auth-type";import { mockQueue } from "./mocks/queue";import { mockSmtpServer } from "./mocks/smtp";@@ -52,6 +52,8 @@ export default {authTokenType: AuthTokenType.ACCESS_TOKEN,userId: seedData1.id,tokenVersionId: seedData1.token.id,+ authMethod: AuthMethod.EMAIL,+ organizationId: seedData1.organization.id,accessVersion: 1},cfg.AUTH_SECRET,