Remix SDK
Remix and React Router v7 adapter with server-side OAuth sessions.
@wocha/remix is the Remix / React Router v7 adapter for Wocha authentication using the BFF pattern. OAuth token exchange happens on the server; sessions are stored in encrypted httpOnly cookies.
Installation
pnpm add @wocha/remixOr scaffold with the CLI
npx @wocha/cli init --framework nextjsPeer dependencies: @remix-run/node or react-router (>=7), React (>=18).
Environment variables
Auth route handler
Create app/routes/auth.$.tsx:
Exposes /auth/login, /auth/callback, /auth/logout, /auth/session, /auth/switch-org.