Skip to content

docs: add React Router middleware example#218

Open
aqilaziz wants to merge 1 commit into
supabase:mainfrom
aqilaziz:docs-react-router-middleware-example
Open

docs: add React Router middleware example#218
aqilaziz wants to merge 1 commit into
supabase:mainfrom
aqilaziz:docs-react-router-middleware-example

Conversation

@aqilaziz
Copy link
Copy Markdown

What changed

  • Adds a React Router v7 Framework Mode middleware example to the README.
  • Shows how to wire createServerClient with getAll and setAll using request cookies and response Set-Cookie headers.
  • Shows how to expose the Supabase client and verified user via React Router context.

Fixes #149

Verification

  • git diff --check

Reference: https://reactrouter.com/how-to/middleware

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.

Add example for using with React Router middleware

1 participant