Function: withAuth()

July 8, 2025 ยท View on GitHub

oidc-react


oidc-react / withAuth

Function: withAuth()

withAuth<P>(Component): ComponentType<Omit<P, keyof AuthContextProps>>

Defined in: with-auth.tsx:8

A public higher-order component to access the imperative API

Type Parameters

P

P extends AuthContextProps

Parameters

Component

ComponentType<P>

Returns

ComponentType<Omit<P, keyof AuthContextProps>>

Contents

  1. 1Type Parameters
  2. 1.1P
  3. 2Parameters
  4. 2.1Component
  5. 3Returns