Skip to content

feat(methods): add oauth.v2.user.access method example - #436

Draft
zimeg wants to merge 1 commit into
mainfrom
zimeg-feat-oauth-v2-user-examples-access
Draft

zimeg wants to merge 1 commit into
mainfrom
zimeg-feat-oauth-v2-user-examples-access

Conversation

@zimeg

@zimeg zimeg commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

This pull request adds a method example for oauth.v2.user.access in methods/src/oauth/v2/user/oauth-v2-user-access.js, and lists it in methods/README.md.

  • The example exchanges a code with PKCE, using the reference page's example values for client_id, client_secret, code, code_verifier and redirect_uri. The refresh and assertion grants are left out, since they replace the code.
  • The method takes no scopes, so the manifest requests none.

This is the only pull request in the oauth examples stack (batch B6 oauth tokens), and it's based on main.

  1. feat(methods): add oauth.v2.user.access method example #436 oauth.v2.user.access 👈 this pull request

Dependency

This depends on slackapi/node-slack-sdk#2872, which adds oauth.v2.user.access to @slack/web-api. It hasn't been released yet, so npm run check fails until a release ships it and methods/package.json pins that version. The example type-checks and runs against a local build of that branch.

Testing

  1. cd methods/src/oauth/v2/user && slack install --environment local.
  2. Send a user through https://slack.com/oauth/v2_user/authorize with only user scopes, replace the example values with your app's credentials and the returned code, then slack run oauth-v2-user-access.js and confirm the access_token.

🤖 Generated with Claude Code

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg changed the base branch from zimeg-feat-oauth-v2-examples-complete-short-token-rotation to main November 18, 2026 06:50
@zimeg
zimeg force-pushed the zimeg-feat-oauth-v2-user-examples-access branch from e9160c8 to 38b0ecd Compare November 18, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant