Function Auth0Provider

  • Provides the Auth0Context to its child components.

    Parameters

    • __namedParameters: PropsWithChildren<{
          clientId: string;
          domain: string;
          localAuthenticationOptions?: LocalAuthenticationOptions;
      }>

    Returns Element

    Example

    <Auth0Provider domain="YOUR AUTH0 DOMAIN" clientId="YOUR CLIENT ID">
    <App />
    </Auth0Provider>

Properties

Properties

propTypes: {
    children: Validator<ReactElementLike>;
    clientId: Validator<string>;
    domain: Validator<string>;
}

Type declaration

  • children: Validator<ReactElementLike>
  • clientId: Validator<string>
  • domain: Validator<string>