Skip to content

Commit 7a05173

Browse files
docs: Clarify GitHub CLI token expiration limitations
Remove "Recommended" label from gh CLI option and add note about token expiration. The gh auth token method only works reliably if authenticated with a PAT, not OAuth, as OAuth tokens expire. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 1d7f96c commit 7a05173

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ npm config set //npm.pkg.github.com/:_authToken YOUR_GITHUB_TOKEN
3535

3636
Replace `YOUR_GITHUB_TOKEN` with your GitHub personal access token that has `read:packages` permission.
3737

38-
**Option 3: Using GitHub CLI (Recommended)**
38+
**Option 3: Using GitHub CLI**
3939

40-
If you have the [GitHub CLI](https://cli.github.com/) installed and authenticated, you can automatically configure npm:
40+
If you have the [GitHub CLI](https://cli.github.com/) installed and authenticated with a Personal Access Token, you can automatically configure npm:
4141

4242
```sh
4343
npm config set @cloudbeds:registry https://npm.pkg.github.com
4444
npm config set //npm.pkg.github.com/:_authToken $(gh auth token)
4545
```
4646

47-
This uses your existing GitHub CLI authentication, eliminating the need to manually manage tokens.
47+
**Note:** This only works reliably if you authenticated GitHub CLI with a PAT (using `gh auth login --with-token`). If you used OAuth web flow, the token may expire and you'll need to reconfigure npm.
4848

4949
### Install the package
5050

0 commit comments

Comments
 (0)