Reduce auth loading timeout from 8s to 3s and add safeguard
cgen-61ae4533517c4651aaffe06b7bb3ae68
This commit is contained in:
parent
3282f3f995
commit
4e18d6c7a5
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({
|
||||||
if (!sessionRestored) {
|
if (!sessionRestored) {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
}
|
}
|
||||||
}, 8000);
|
}, 3000);
|
||||||
|
|
||||||
if (!storageClearedRef.current && typeof window !== "undefined") {
|
if (!storageClearedRef.current && typeof window !== "undefined") {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue