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

Command 'Github Authentication Sample: Get Github User' resulted in an error #921

Closed
Tracked by #922
lopezvoliver opened this issue Nov 15, 2023 · 0 comments · Fixed by #929
Closed
Tracked by #922

Command 'Github Authentication Sample: Get Github User' resulted in an error #921

lopezvoliver opened this issue Nov 15, 2023 · 0 comments · Fixed by #929
Assignees

Comments

@lopezvoliver
Copy link

Extension sample

Github Authentication Sample

VS Code version

1.84.2

What went wrong?

  1. I cloned the vscode-extension-samples repository.
  2. I opened a new vscode window and opened the folder github-authentication-sample.
  3. npm install.
  4. F5 to debug the extension
  5. In the Extension development host window, use the Github Authentication Sample: Get Github User

An error popup window appears:

Command 'Github Authentication Sample: Get Github User' resulted in an error
Cannot read properties of undefined (reading 'accessToken')

However, the command worked the second time, showing the dialog asking the user if they want to sign in.

Closing the window without clicking on "Allow" and retrying steps 4-5 above reproduces the error.

However, once I click on "Allow" in the dialog, the error will no longer be reproducible.

TylerLeonhardt added a commit that referenced this issue Dec 5, 2023
TylerLeonhardt added a commit that referenced this issue Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants