Skip to content

Latest commit

聽

History

History

react

Folders and files

README.md

Logto React SDK

Version Build Status Codecov

The Logto React SDK written in TypeScript.

Check out our docs for more information.

Installation

Using npm

npm install @logto/react

Using yarn

yarn add @logto/react

Using pnpm

pnpm add @logto/react

Get sample

A 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 start

Discovery cache

Set 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.

Resources

Website Docs Discord