Skip to main content

How to use dsh-github-login

Enables visual GitHub login via device code flow and syncs tokens to the gh CLI.

This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.

This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.

Quick start

Enables visual GitHub login via device code flow and syncs tokens to the gh CLI.

— source: plugins.ai_summary

Install & verify

dsh plugin --profile web add github:Noob-stupid/dsh-github-login

Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.

— source: plugins.install

Key points

  • GET /github-auth/status → {ok, loggedIn, login}(只含账号名,绝不下发令牌)
  • POST /github-auth/open → 唤起登录工具窗口(本机存在 exe 时直接启动)
  • 窗口内授权:授权页直接内嵌在窗口里(<webview>),带 前进 / 后退 / 刷新 按钮,
  • 登录成功后令牌保存在 ~/.dsh/github-auth.json;
  • 同时同步进 gh CLI 的 ~/.config/gh/hosts.yml,gh 命令行立即可用(keyring 存在时 gh 以 keyring 优先);

— source: plugin_wiki.readme_en (fallback readme_raw)

Pitfalls

Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.

— source: general rule

How to use dsh-github-login