Skip to content

feat: add react-oauth use-case template - #1

Merged
Bccorb merged 1 commit into
mainfrom
feat/react-oauth
Jul 2, 2026
Merged

Bccorb merged 1 commit into
mainfrom
feat/react-oauth

Conversation

@Bccorb

@Bccorb Bccorb commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Adds an OAuth-first React (Vite) starter as a second web example, proving out use-case templates within a single framework.

What it adds

  • templates/web/react-oauth/: an OAuth-first app. A focused /login lists the auth server's configured providers and starts the redirect (useAuth().startOAuthLogin), an /oauth/callback route completes it (finishOAuthLogin), and a protected home shows the signed-in identity.
  • template.json with a verify block scoping its conformance to the oauth flow.
  • registry.json: the new entry with alias: "oauth" (for seamless init --oauth); react-vite gains alias: "basic".

Validation

  • Build-smoke: tsc -b && vite build clean.
  • Conformance: driven through the existing verify harness (react @oauth spec), the browser flow passes end to end (provider button, IdP redirect, callback, signed-in).
  • Scaffolds and wires .env correctly through the registry.

Note

Full multi-template conformance in this repo's PR CI activates once the seamless-cli change that loops every web template lands on main. Until then this PR's conformance exercises react-vite (unchanged).

An OAuth-first React (Vite) starter that lists the auth server's configured OAuth
providers (useAuth().listOAuthProviders / startOAuthLogin) and completes the login
on an /oauth/callback route (finishOAuthLogin). Registered with alias "oauth" and a
verify block scoping conformance to the oauth flow; react-vite gains alias "basic".
@Bccorb
Bccorb merged commit c2883a1 into main Jul 2, 2026
5 checks passed
@Bccorb
Bccorb deleted the feat/react-oauth branch July 2, 2026 19:19
@Bccorb Bccorb mentioned this pull request Sep 13, 2026
13 tasks
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.

1 participant