mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 16:28:19 +00:00
misc: code rabbit
This commit is contained in:
@@ -46,8 +46,8 @@ export const getCamundaConnectionAccessToken = async (
|
|||||||
) => {
|
) => {
|
||||||
const { clientSecret, clientId, accessToken, expiresAt } = credentials;
|
const { clientSecret, clientId, accessToken, expiresAt } = credentials;
|
||||||
|
|
||||||
// get new token if less than 10 minutes from expiry
|
// get new token if less than 30 seconds from expiry
|
||||||
if (Date.now() < expiresAt - 10_000) {
|
if (Date.now() < expiresAt - 30_000) {
|
||||||
return accessToken;
|
return accessToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ export const CamundaSyncReviewFields = () => {
|
|||||||
<>
|
<>
|
||||||
<GenericFieldLabel label="Secret Scope">{scope}</GenericFieldLabel>
|
<GenericFieldLabel label="Secret Scope">{scope}</GenericFieldLabel>
|
||||||
<GenericFieldLabel label="Cluster">
|
<GenericFieldLabel label="Cluster">
|
||||||
{clusterName} (uuid:{clusterUUID})
|
{clusterName} (id:{clusterUUID})
|
||||||
</GenericFieldLabel>
|
</GenericFieldLabel>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user