loading
Preparing LoginRadius developer resources
Mission: Help enterprises accelerate digital transformation with our fully-managed Customer IAM technology.
Skip to main content

LoginRadius React SDK

The LoginRadius React SDK (@loginradius/loginradius-react) delivers a React-first integration layer for authentication, profile management, and Identity Orchestration workflows. It handles session state, flow orchestration, and credential storage while giving you full control over UI composition.

The SDK ships pre-built JSX components on top of an embedded auth engine — API client, session management, flow registry, and schema generation. Wrap your app in LoginRadiusProvider and render any flow as a component (for example, <Auth /> or <Profile />).

When to use

Choose the React SDK when any of the following apply:

  • You build with React (Create React App, Vite + React, Next.js, Remix) and want idiomatic JSX components.
  • You need hooks such as useLRAuth() to read or mutate session state without prop-drilling.
  • You want a managed UI for authentication, profile, and B2B organization management without writing the components yourself.

Prefer the LoginRadius JavaScript SDK when your app is built with a non-React framework (Vue, Angular, Svelte, SolidJS, Nuxt) or vanilla HTML.

Available components

Render any flow as a JSX element inside the LoginRadiusProvider tree — for example, <Auth /> or <Profile />. Component identities use PascalCase matching the exports from @loginradius/loginradius-react. Names are organized below by capability area; full per-component reference lives on the Components page.

Authentication and flows

Sign-in, sign-up, social, passwordless, password reset, token verification, and Identity Orchestration workflow components. Use these to render the user-facing entry points of your authentication experience.

ComponentDescription
AuthCombined sign-in and sign-up experience (default entry point)
LoginSign-in only
RegisterSign-up / registration only
SocialLoginSocial provider sign-in
PasswordlessLoginPasswordless login (magic link or OTP)
ForgotPasswordPassword reset flow
VerificationTokenEmail / token verification
AdminPortalAdmin portal UI
WorkflowIdentity Orchestration workflow execution

Profile and account management

Self-service account management surfaces — full profile editor, password and PIN changes, email and phone updates, MFA enrollment, passkey registration, social-account linking, and account deletion. Use these inside an authenticated session to let users manage their own identity data.

ComponentDescription
ProfileFull profile editor (account management UI)
PersonalDetailsView and edit personal profile details
ChangePasswordChange account password
ChangePinChange account PIN
EditPhoneUpdate phone number
EditUsernameChange username
AddEmailAdd or manage email addresses
VerifyEmailPhoneVerify email address or phone number
SetupTwoFactorAuthEnroll and manage two-factor authentication (MFA)
AddPasskeyRegister a passkey
ResetBackupCodeRegenerate MFA backup codes
LinkAccountLink or unlink social accounts
DeleteAccountDelete the user account

Organization management (B2B)

B2B administration components for managing organizations, members, roles, SSO/identity connections, SCIM provisioning, verified domains, and organization switching. Use these to power tenant-admin experiences in multi-tenant applications.

ComponentDescription
OrganizationUsersManage organization members
OrganizationRolesManage organization roles
OrganizationPolicyOrganization security policies (MFA, JIT)
OrganizationConnectionsManage SSO / identity connections
OrganizationSCIMSCIM provisioning configuration
OrganizationSettingsGeneral organization settings
OrganizationDomainManagementManage verified domains
OrganizationSelectorOrganization selection UI
OrganizationSwitcherSwitch between organizations
OrganizationDangerZoneDestructive organization actions (e.g. delete org)