Skip to content

feat: persist and display oauth scope + auth details - #217

Merged
dknudsen-stripe merged 1 commit into
mainfrom
dknudsen/auth-status-scope-authorization-details
Jul 24, 2026
Merged

feat: persist and display oauth scope + auth details#217
dknudsen-stripe merged 1 commit into
mainfrom
dknudsen/auth-status-scope-authorization-details

Conversation

@dknudsen-stripe

Copy link
Copy Markdown
Contributor

We updated the device setup AccessToken issuing endpoint to echo the token's scope and authorization_details. The CLI will now store these fields and echo them back on link-cli auth status.

Testing:

dknudsen@st-dknudsen4(laptop) ~/stripe/link-cli % node packages/cli/dist/cli.js auth status

Update available for @stripe/link-cli: 0.8.3 -> 0.10.1
Run: npm install -g @stripe/link-cli
✓ Authenticated

  Access token: liwltoken_1TvOZuDVEw...
  Token type: Bearer
  Scope: userinfo:read
  Authorization details:
  [{"type":"source","actions":["read_link_transactions"],"resource_id":"csmrpd_61V3eMYDK8p60WSZA41DVEwlwacuROT2"},{"type":"source","actions":["read_link_transactions"],"resource_id":"csmrpd_61V3ePuOY0vH0LU1541DVEwlwacuR5JA"}]
  Credentials: /Users/dknudsen/Library/Preferences/link-cli-nodejs/config.json

@dknudsen-stripe
dknudsen-stripe merged commit b87f7d5 into main Jul 24, 2026
5 checks passed
@dknudsen-stripe
dknudsen-stripe deleted the dknudsen/auth-status-scope-authorization-details branch July 24, 2026 20:44
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 this pull request may close these issues.

3 participants