The Logto React SDK written in TypeScript.
Check out our docs for more information.
npm install @logto/reactyarn add @logto/reactpnpm add @logto/reactA sample project can be found at React Sample
Check out the full JS repo and try it with ease.
pnpm i && pnpm build
cd packages/react-sample && pnpm startSet enableCache on LogtoProvider to cache OIDC discovery metadata in session storage. Caching is
disabled by default.
<LogtoProvider config={config} enableCache>
<App />
</LogtoProvider>The deprecated unstable_enableCache property remains supported. enableCache takes precedence
when both are provided.