Review fixes

This commit is contained in:
x032205
2025-06-19 15:12:41 -04:00
parent 7a13c27055
commit 9ac4453523
3 changed files with 23 additions and 28 deletions
@@ -33,8 +33,8 @@ export const GithubProvider = (): TDynamicProviderFns => {
const nowInSeconds = Math.floor(Date.now() / 1000);
const jwtPayload = {
iat: nowInSeconds - 60,
exp: nowInSeconds + 10 * 60 - 60,
iat: nowInSeconds - 5,
exp: nowInSeconds + 60,
iss: String(appId)
};
@@ -110,9 +110,12 @@ export const GithubProvider = (): TDynamicProviderFns => {
};
};
const revoke = async (_inputs: unknown, entityId: string) => {
// GitHub installation access tokens cannot be revoked.
return { entityId };
const revoke = async () => {
// GitHub installation tokens cannot be revoked.
throw new BadRequestError({
message:
"Github dynamic secret does not support revocation because GitHub itself cannot revoke installation tokens"
});
};
const renew = async () => {