Skip to content

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

Update auth-token-service.ts

Daniel Hougaard80b4bc18ec66
diff --git a/backend/src/services/auth-token/auth-token-service.ts b/backend/src/services/auth-token/auth-token-service.ts
index 5d0011d112..59f336e5a2 100644
--- a/backend/src/services/auth-token/auth-token-service.ts
+++ b/backend/src/services/auth-token/auth-token-service.ts
@@ -135,7 +135,6 @@ export const tokenServiceFactory = ({ tokenDAL, userDAL }: TAuthTokenServiceFact
id: token.tokenVersionId,
userId: token.userId
});
-
if (!session) throw new UnauthorizedError({ name: "Session not found" });
if (token.accessVersion !== session.accessVersion) throw new UnauthorizedError({ name: "Stale session" });