@kerne/react manages the signed-in user’s session and adapts your UI to what they can access. It never holds a secret key: every call acts as the signed-in user, on their own data. It works in any React app.
Install
A sign-in coming from your hosted portal couldn’t be completed. See Session
handoff.
Styling for every prebuilt component. See Styling & language.
Hooks and components
Ready-made sign-in, account and pricing screens are in
@kerne/react/ui: see Prebuilt screens.
Guard components
<Protected> requires a session, a feature, or both:
<Authenticated>, <Access> and <HasSubscription>.
Error boundary
error.code is set when the error came from the Kerne API.
Browser checks are for display
The browser runs on the user’s machine, so anything it checks or records can be skipped. Use this SDK to adapt your UI, and check access or record usage from your backend with@kerne/server for anything you enforce or bill.
