Sample Project Walkthrough
- Javascript
- Python
- Go
function Logout(props) {
const setLoginInfo = props.setLoginInfo;
useEffect(() => {
GoogleApi.delete('login')
.then((response) => {
setLoginInfo(null);
window.location.replace('https://google.com/logout')
});
}, [setLoginInfo])
return null;
}