Comments (2)
UPDATE: I think you have to open the browser first then let it open up a new tab then close the tab
for it to work. When you let it open up the browser on it's own I don't think it will work cause
that was the problem I was having. I did manage to get it to work after messing with it.
Not sure if this is a bug or not?
from cli.
Hey @rickalex21, sorry for the long delay in responding to this after Christmas. Some team changes and a large backlog.
I'm really not sure what you're running into here, after you enter the code the CLI will poll the server for the access token:
https://github.com/cli/oauth/blob/adf5f733ffd14993aad9f3ff02c757a737f7c63b/device/device_flow.go#L131-L175
If it's hanging forever something funky is going on but I'm afraid I don't have enough information here to make a guess. Was it definitely hanging forever? How long did you wait?
Regarding:
I'm on firefox, I can't try it with brave because it won't open brave despite brave being my default browser.
The CLI will try to interrogate some environment variables and config https://github.com/cli/go-gh/blob/d88d88f917cd4e0bcaa582bac2bb909bd79f9759/pkg/browser/browser.go#L69-L80
And if it can't find any of those it will ask the system to help out (here's the linux code) https://github.com/cli/browser/blob/b393df5d7bfa7490b76669e04a8652c3e167c524/browser_linux.go#L8-L21
I'm not exactly sure how those relate to your "default browser".
from cli.
Related Issues (20)
- The "Created at" column in the table of the list of PR doesn't sound good with "about 1 month ago" HOT 3
- Support using both `--jq` and `--template` for `gh repo list` HOT 2
- gh pr create -f breaking up titles with commas HOT 2
- Add File Exclusion Option to gh pr diff Command
- viewing an issue/pr executes fragments of the ANSI Escape code on `:terminal` in Neovim HOT 1
- cannot use cli after reading README page HOT 2
- `gh issue list` should show assignee/s if any
- gh pr merge --admin Does not circumvent merge queue as documented HOT 6
- Enable authentication using GitHub App
- Windows MSI installer should (optionally) add a Start Menu and/or icon
- Disabling or enabling of the "Include in the home page" properties, i.e., Releases, Packages and Deployments that reside in the About menu. HOT 3
- a
- `gh pr [comment]` not working correctly for few days HOT 11
- `gh project item-edit` returns `unknown flag: --force` even though no such flag is provided HOT 6
- [Enhancement] Add support for deeply nested arrays in `gh api` magic fields HOT 4
- feedback
- Akim86
- Add param to skip uploading ssh public key to GitHub account non interactively if it is not required
- document `--latest=false` for `gh release create` or `--no-latest` option for `gh release create`
- ## What's Changed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.