UNPKG

@axa-fr/react-oidc-fetch-core

Version:
7 lines 1.05 kB
import React from 'react'; import { ReactOidcHistory } from '@axa-fr/react-oidc-core'; export declare const fetchWithRedirectionOn403: (fetch: ((input: RequestInfo, init?: RequestInit) => Promise<Response>) & typeof fetch, history: ReactOidcHistory) => (url: RequestInfo, options?: RequestInit) => Promise<Response>; export declare const wrapAuthenticating: (fetchWithRedirectioInjected: (fetch: ((input: RequestInfo, init?: RequestInit) => Promise<Response>) & typeof fetch, history: ReactOidcHistory) => (url: RequestInfo, options?: RequestInit) => Promise<Response>) => (fetch: ((input: RequestInfo, init?: RequestInit) => Promise<Response>) & typeof fetch) => (WrappedComponent: React.ComponentType<{}>) => (props: any) => JSX.Element; declare const withFetchRedirectionOn403: (fetch?: ((input: RequestInfo, init?: RequestInit) => Promise<Response>) & typeof fetch) => (WrappedComponent: React.ComponentType<{}>) => (props: any) => JSX.Element; export default withFetchRedirectionOn403; //# sourceMappingURL=withFetchRedirectionOn403.d.ts.map