mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-19 00:30:56 +00:00
Fix: Remove orgId from service token
This commit is contained in:
@@ -30,7 +30,6 @@ export type TAuthMode =
|
||||
serviceToken: TServiceTokens & { createdByEmail: string };
|
||||
actor: ActorType.SERVICE;
|
||||
serviceTokenId: string;
|
||||
orgId: string;
|
||||
}
|
||||
| {
|
||||
authMode: AuthMode.IDENTITY_ACCESS_TOKEN;
|
||||
@@ -143,7 +142,6 @@ export const injectIdentity = fp(async (server: FastifyZodProvider) => {
|
||||
req.auth = {
|
||||
authMode: AuthMode.SERVICE_TOKEN as const,
|
||||
serviceToken,
|
||||
orgId: serviceToken.orgId,
|
||||
serviceTokenId: serviceToken.id,
|
||||
actor
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user