Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
return (
{this.props.children}
);
}
}
const AuthProviderWithGraphQL = withApollo<{}>(AuthProvider);
function useAuthContext() {
const authContext = React.useContext(AuthContext);
return authContext;
}
export { AuthProviderWithGraphQL as AuthProvider, useAuthContext, setAuthToken, getAuthToken };