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

[DOCS]: How do I construct octokit when I have a saved token #478

Closed
1 task done
ProLoser opened this issue Sep 4, 2024 · 2 comments
Closed
1 task done

[DOCS]: How do I construct octokit when I have a saved token #478

ProLoser opened this issue Sep 4, 2024 · 2 comments
Labels
Status: Triage This is being looked at and prioritized Type: Documentation Improvements or additions to documentation

Comments

@ProLoser
Copy link

ProLoser commented Sep 4, 2024

Describe the need

I see an api for exchanging a code for an authenticated instance of octokit. How do I go about creating an identical instance of octokit if the app recovers a stored token?

The documentation and typescript definitions and the massive layers of abstraction are the most confusing thing I've ever encountered and it's been giving me a huge headache trying to wrap my head around the myriad of variations of how the octokit instance can be initialized and configured.

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ProLoser ProLoser added Status: Triage This is being looked at and prioritized Type: Documentation Improvements or additions to documentation labels Sep 4, 2024
Copy link

github-actions bot commented Sep 4, 2024

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@ProLoser
Copy link
Author

ProLoser commented Sep 4, 2024

Figured it out, new Octokit({ auth: token })

@ProLoser ProLoser closed this as completed Sep 4, 2024
@github-project-automation github-project-automation bot moved this from 🆕 Triage to ✅ Done in 🧰 Octokit Active Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Documentation Improvements or additions to documentation
Projects
Archived in project
Development

No branches or pull requests

1 participant