Remove annoying alert

This commit is contained in:
Simponic 2023-01-20 23:58:24 -07:00
parent 804d47d81d
commit a634901317
Signed by untrusted user who does not match committer: simponic
GPG Key ID: 52B3774857EB24B1

View File

@ -37,14 +37,7 @@ export const AuthProvider = ({ children }) => {
setTimeout(() => {
setSessionOver((sessionOver) => {
if (Date.now() >= sessionOver) {
setSignedIn((signedIn) => {
if (signedIn)
alert(
"Session expired. Any further privileged requests will fail until signed in again."
);
return false;
});
setSignedIn(false);
setPlayer(null);
}
return sessionOver;