UNPKG

@axa-fr/react-oidc

Version:

OpenID Connect & OAuth authentication using react

9 lines 595 B
import { Fetch } from '@axa-fr/oidc-client'; export interface ComponentWithOidcFetchProps { fetch?: Fetch; } export declare const withOidcFetch: (fetch?: Fetch, configurationName?: string, demonstratingProofOfPossession?: boolean) => (WrappedComponent: any) => (props: ComponentWithOidcFetchProps) => import("react/jsx-runtime").JSX.Element; export declare const useOidcFetch: (fetch?: Fetch, configurationName?: string, demonstratingProofOfPossession?: boolean) => { fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>; }; //# sourceMappingURL=FetchToken.d.ts.map