Install with the CLI
Vite
Create React App
Notes
- Env var prefixes differ: Vite uses
VITE_, CRA usesREACT_APP_. The CLI picks the right one for you. - The provider wraps the render call in the entrypoint, not inside
App.tsx. This keeps it outside ofReact.StrictMode’s double‑mount behavior so the session isn’t reset on the development reload.