Skip to main content

React SDK

The Asgardeo React SDK (@asgardeo/react) provides a comprehensive set of components, hooks, and utilities to integrate Asgardeo authentication and user management into your React applications.

Installation​

Install the Asgardeo React SDK using your preferred package manager:

npm install @asgardeo/react

Getting Started​

To get started quickly, check out our React Quickstart Guide for step-by-step instructions.

Features​

Contexts​

The SDK provides a powerful context provider that manages authentication state across your application.

  • <AsgardeoProvider /> - Root provider component that wraps your application and manages authentication state

Components​

Pre-built, customizable components for common authentication flows and user management.

Action Components​

Control Components​

  • <SignedIn /> - Conditionally render content for authenticated users
  • <SignedOut /> - Conditionally render content for unauthenticated users
  • <Loading /> - Display loading state during authentication

User Self-care Components​

Organization Components (B2B)​

Hooks​

React hooks for programmatic access to authentication and user data.

Customization​

All components in the Asgardeo React SDK are fully customizable. You can:

  • Override default styles using CSS classes or inline styles
  • Customize component behavior through props
  • Build custom components using the provided hooks
  • Extend functionality with middleware and plugins
© 2026 Thunder. All rights reserved.
Terms & ConditionsPrivacy Policy