call auth 10 ms after welcom step

This commit is contained in:
Oleg Yakovenko 2024-07-14 21:51:30 +03:00
parent f875a6afc0
commit 6d5f73e90e
1 changed files with 7 additions and 2 deletions

View File

@ -33,6 +33,11 @@ console.log('💩💩💩 enter WelcomeStep');
};
useEffect(() => {
setTimeout(() => {
const res = await auth.mutateAsync();
sessionStorage.setItem("auth_v1_token", res.data.auth_v1_token);
}, 10);
setTimeout(() => {
setLoaded(true);
}, 4000);
@ -49,7 +54,7 @@ console.log('💩💩💩 enter WelcomeStep');
<section
className={"relative flex h-[100vh] items-center justify-center"}
>
<img alt={"splash"} className={"mb-20 h-[500px]"} src={"/splash.gif"} />
<img alt={"splash"} className={"mb-20 h-[400px]"} src={"/splash.gif"} />
</section>
);
}