React login-pkce sample + extraction tooling#1
Conversation
Scaffold the repo with a React Auth Code + PKCE sample app, snippet extraction/validation tooling, CI workflows, and updated README with contribution guidelines. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Run Prettier before the build step so dist/ artifacts don't trigger false formatting failures. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds a React “Authorization Code + PKCE” login sample and a small toolchain to extract/aggregate/validate snippet content for SecureAuth’s Quickstart dashboard, along with repo-level Yarn workspace + CI support.
Changes:
- Added a React/Vite sample app (
samples/react/login-pkce) with snippet tags and Vitest coverage. - Added snippet aggregation/extraction/structure-validation scripts and generated artifacts (
snippet-manifest.yaml,snippets.json). - Added GitHub Actions workflow(s) plus repo housekeeping (workspaces, Dependabot, CODEOWNERS, README updates).
Reviewed changes
Copilot reviewed 27 out of 30 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Adds workspace lockfile for the sample app + scripts. |
| package.json | Defines Yarn workspaces for samples + scripts. |
| .yarnrc.yml | Configures Yarn 4 + node-modules linker. |
| placeholder-map.yaml | Defines placeholder substitutions for snippet extraction. |
| snippets.json | Generated extracted snippets output. |
| snippet-manifest.yaml | Generated aggregated manifest output. |
| scripts/package.json | Tooling package for aggregate/extract/validate commands. |
| scripts/tsconfig.json | TS config for running tooling scripts. |
| scripts/aggregate-manifests.ts | Aggregates per-framework manifests into a single manifest. |
| scripts/extract-snippets.ts | Extracts tagged steps from samples into snippets.json. |
| scripts/validate-structure.ts | Validates sample folder structure + snippet tags exist. |
| samples/react/manifest.yaml | React framework manifest and scenario metadata. |
| samples/react/login-pkce/package.json | React sample dependencies and scripts (dev/build/test/format). |
| samples/react/login-pkce/tsconfig.json | TS config for the React sample. |
| samples/react/login-pkce/vite.config.ts | Vite dev server config for the sample. |
| samples/react/login-pkce/vitest.config.ts | Vitest config for the sample. |
| samples/react/login-pkce/vitest.setup.ts | Vitest setup importing jest-dom matchers. |
| samples/react/login-pkce/index.html | Sample app HTML entrypoint. |
| samples/react/login-pkce/.env.example | Sample env template for issuer/client/redirect/scopes. |
| samples/react/login-pkce/src/vite-env.d.ts | Vite client types reference. |
| samples/react/login-pkce/src/index.tsx | React entrypoint rendering <App />. |
| samples/react/login-pkce/src/App.tsx | AuthProvider setup + snippet-tagged step content. |
| samples/react/login-pkce/src/App.test.tsx | Basic UI-state tests with mocked react-oidc-context. |
| samples/react/login-pkce/README.md | Sample usage + behavior description. |
| README.md | Root repo documentation describing structure and contribution flow. |
| .github/workflows/test-js.yml | CI to build/test sample projects under samples/**. |
| .github/workflows/extract.yml | Main-branch workflow to regenerate/commit snippet artifacts. |
| .github/dependabot.yml | Dependabot config for sample + scripts + GitHub Actions. |
| .github/CODEOWNERS | Requires CIAM team review. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 27 out of 30 changed files in this pull request and generated 10 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 27 out of 30 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
samples/react/login-pkce/)scripts/)Test plan
cd samples/react/login-pkce && yarn devstarts the appcd scripts && yarn allextracts and validates snippets🤖 Generated with Claude Code