mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 21:27:10 +00:00
make clear service token with null creator
This commit is contained in:
@@ -28,7 +28,7 @@ const getDistinctId = (req: FastifyRequest) => {
|
|||||||
return `identity-${req.auth.identityId}`;
|
return `identity-${req.auth.identityId}`;
|
||||||
}
|
}
|
||||||
if (req.auth.actor === ActorType.SERVICE) {
|
if (req.auth.actor === ActorType.SERVICE) {
|
||||||
return req.auth.serviceToken.createdByEmail || `service-token-${req.auth.serviceTokenId}`; // when user gets removed from system
|
return req.auth.serviceToken.createdByEmail || `service-token-null-creator-${req.auth.serviceTokenId}`; // when user gets removed from system
|
||||||
}
|
}
|
||||||
return "unknown-auth-data";
|
return "unknown-auth-data";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user