OAuth Consent for React Router

OAuth 2.1 consent screen and route for an existing authenticated application.

Usage docs and preview are being generated by the coding agent. Registry metadata is shown meanwhile.
building preview…
The live preview has not been built yet.
See how it was built

Installation

pnpm dlx shadcn@latest add https://supabase.com/ui/r/oauth-consent-react-router.json

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "OAuth Consent for React Router" component (supabase-library/oauth-consent-react-router) from its shadcn registry.1. Install it with: npx shadcn@latest add https://supabase.com/ui/r/oauth-consent-react-router.json2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.

Files & dependencies

  • registry/default/blocks/oauth-consent/components/oauth-consent.tsx
  • registry/default/blocks/oauth-consent/hooks/use-oauth-consent.ts
  • registry/default/blocks/oauth-consent-react-router/app/routes/oauth.consent.tsx→ app/routes/oauth.consent.tsx
  • registry/default/clients/react-router/lib/supabase/client.ts
  • registry/default/clients/react-router/lib/supabase/server.ts
dependencies@supabase/ssr@latest@supabase/supabase-js@latest
registryDependenciesbuttoncardhttps://supabase.com/library/r/safe-next-path.json

Looks similar, elsewhere

There is no screenshot of this item to compare yet.