Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Fix: Code readability

Daniel Hougaard700a072ec515
diff --git a/backend/src/server/routes/v3/login-router.ts b/backend/src/server/routes/v3/login-router.ts
index ea6b3f52eb..900ad56d27 100644
--- a/backend/src/server/routes/v3/login-router.ts
+++ b/backend/src/server/routes/v3/login-router.ts
@@ -53,8 +53,8 @@ export const registerLoginRouter = async (server: FastifyZodProvider) => {
handler: async (req, res) => {
const cfg = getConfig();
const tokens = await server.services.login.selectOrganization({
- userAgentHeader: req.headers["user-agent"],
- authorizationHeader: req.headers.authorization,
+ userAgent: req.headers["user-agent"],
+ authJwtToken: req.headers.authorization,
organizationId: req.body.organizationId,
ipAddress: req.realIp
});