@axa-fr/react-oidc-fetch-core
Version:
7 lines • 732 B
TypeScript
import React from 'react';
import { User } from 'oidc-client';
declare type TrySigninSilent = (args?: any) => Promise<User>;
export declare const wrapAuthenticating: (fetch: ((input: RequestInfo, init?: RequestInit) => Promise<Response>) & typeof fetch, trySilentAuthenticateInjected: TrySigninSilent) => (WrappedComponent: React.ComponentType<{}>) => (props: any) => JSX.Element;
declare const withFetchSilentAuthenticateAndRetryOn401: (fetch?: ((input: RequestInfo, init?: RequestInit) => Promise<Response>) & typeof fetch) => (WrappedComponent: React.ComponentType<{}>) => (props: any) => JSX.Element;
export default withFetchSilentAuthenticateAndRetryOn401;
//# sourceMappingURL=withFetchSilentAuthenticateAndRetryOn401.d.ts.map