Only try to login once for git gateway when page loads
This commit is contained in:
parent
daf44f9dc2
commit
2fcaf3553e
@ -60,7 +60,8 @@ const GitGatewayAuthenticationPage = ({
|
|||||||
onLogin(window.netlifyIdentity.currentUser());
|
onLogin(window.netlifyIdentity.currentUser());
|
||||||
window.netlifyIdentity.close();
|
window.netlifyIdentity.close();
|
||||||
}
|
}
|
||||||
}, [loggedIn, onLogin]);
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, []);
|
||||||
|
|
||||||
const handleIdentityLogin = useCallback(
|
const handleIdentityLogin = useCallback(
|
||||||
(user: User) => {
|
(user: User) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user