More Premium Hugo Themes Premium React Themes

React Oidc Context

Lightweight auth library based on oidc-client-ts for React single page applications (SPA). Support for hooks and higher-order components (HOC).

React Oidc Context

Lightweight auth library based on oidc-client-ts for React single page applications (SPA). Support for hooks and higher-order components (HOC).

Author Avatar Theme by authts
Github Stars Github Stars: 974
Last Commit Last Commit: Jan 6, 2026 -
First Commit Created: Dec 18, 2023 -
React Oidc Context screenshot

Overview

The react-oidc-context is a lightweight authentication library for React single page applications (SPAs) that uses the oidc-client-ts library. It provides support for hooks and higher-order components (HOC) for easy integration and authentication management.

Features

  • Lightweight auth library for React SPAs
  • Uses the oidc-client-ts library
  • Support for hooks and higher-order components (HOC)
  • Implements an auth context provider
  • Intercept auth redirects and act accordingly
  • Automatic silent renew feature for access token renewal

Installation

To install the react-oidc-context library, you can use either npm or yarn. Here are the installation commands:

# Using npm
npm install react-oidc-context

# Using yarn
yarn add react-oidc-context

Summary

The react-oidc-context is a lightweight authentication library for React SPAs that integrates with the oidc-client-ts library. It provides easy authentication management with support for hooks and higher-order components. With features like intercepting auth redirects and automatic silent token renewal, it offers a convenient solution for implementing authentication in React applications.