Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT]: Revoke an installation access token #2963

Open
1 task done
Danielku15 opened this issue Aug 28, 2024 · 2 comments
Open
1 task done

[FEAT]: Revoke an installation access token #2963

Danielku15 opened this issue Aug 28, 2024 · 2 comments
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Feature New feature or request

Comments

@Danielku15
Copy link

Describe the need

Octokit is missing an API for https://docs.github.com/en/rest/apps/installations?apiVersion=2022-11-28#revoke-an-installation-access-token

I'd say it should be added here:

We want to login/logout cleanly similar to https://github.com/actions/create-github-app-token/blob/main/lib/post.js#L31C27-L31C46

SDK Version

Octokit.net 13.0.1

API Version

REST API 2022-11-28

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Danielku15 Danielku15 added Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels Aug 28, 2024
@kfcampbell kfcampbell added Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels Aug 30, 2024
@laurajayneharvey
Copy link

I'd like to pick this one up

@younes101020
Copy link

Hello, you can revoke it using revokeInstallationAccessToken() method.

eg: await octokit.apps.revokeInstallationAccessToken();

make sure to instantiate octokit with createAppAuth authStrategy before this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Feature New feature or request
Projects
Status: 🔥 Backlog
Development

No branches or pull requests

4 participants