You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read properties of undefined (reading 'on') app.oauth.on("token", async ({ token, octokit }) => {
I replaced app.oauth.on with app.on and it worked fine.
{"error":"Cannot read properties of undefined (reading 'getWebFlowAuthorizationUrl')"}
I replaced import { OAuthApp, createNodeMiddleware } from "octokit"; with import { OAuthApp, createNodeMiddleware } from "@octokit/oauth-app"; and it worked fine.
Versions
Octokit.js v3.2.0, Node v18.18.2
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
👋 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 labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
What happened?
Using the OAuth web flow on OAuth app.
Like: Example: Watch a repository when a user logs in using the OAuth web flow
I got some error message:
app.oauth.on("token", async ({ token, octokit }) => {
I replaced
app.oauth.on
withapp.on
and it worked fine.I replaced
import { OAuthApp, createNodeMiddleware } from "octokit";
withimport { OAuthApp, createNodeMiddleware } from "@octokit/oauth-app";
and it worked fine.Versions
Octokit.js v3.2.0, Node v18.18.2
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: