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(() => { setTimeout(() => {
setSessionOver((sessionOver) => { setSessionOver((sessionOver) => {
if (Date.now() >= sessionOver) { if (Date.now() >= sessionOver) {
setSignedIn((signedIn) => { setSignedIn(false);
if (signedIn)
alert(
"Session expired. Any further privileged requests will fail until signed in again."
);
return false;
});
setPlayer(null); setPlayer(null);
} }
return sessionOver; return sessionOver;