Remove annoying alert
This commit is contained in:
parent
804d47d81d
commit
a634901317
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user