Skip to content

Commit

Permalink
fixup! Try revoking token
Browse files Browse the repository at this point in the history
  • Loading branch information
tibdex committed Sep 9, 2023
1 parent afe68de commit 92922c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import { tokenKey } from "./state.js";

await run(async () => {
const token = getState(tokenKey);
if (!token) {
info("No token to revoke");
return;
}
await revokeInstallationAccessToken(token);
info("Token revoked successfully");
await revokeInstallationAccessToken(token);
Expand Down

0 comments on commit 92922c2

Please sign in to comment.