2020-09-11 15:52:58 +00:00
|
|
|
import * as React from 'react';
|
2020-09-16 23:22:11 +00:00
|
|
|
import { AuthContextInterface, AuthProviderProps } from "./types";
|
|
|
|
|
declare const AuthContext: React.Context<AuthContextInterface>;
|
2020-09-11 15:52:58 +00:00
|
|
|
/**
|
|
|
|
|
* AuthProvider - The Authentication Context Provider
|
|
|
|
|
*
|
|
|
|
|
* @param children
|
|
|
|
|
* @param authStorageName
|
|
|
|
|
* @param authStorageType
|
|
|
|
|
* @param authTimeStorageName
|
|
|
|
|
* @param cookieDomain
|
|
|
|
|
* @param cookieSecure
|
|
|
|
|
* @param stateStorageName
|
|
|
|
|
*/
|
|
|
|
|
declare const AuthProvider: React.FunctionComponent<AuthProviderProps>;
|
|
|
|
|
export default AuthProvider;
|
2020-09-16 23:22:11 +00:00
|
|
|
declare const AuthContextConsumer: React.Consumer<AuthContextInterface>;
|
2020-09-11 15:52:58 +00:00
|
|
|
export { AuthContext, AuthContextConsumer };
|