Skip to content

Commit

Permalink
🐛 Fix timeout interval
Browse files Browse the repository at this point in the history
  • Loading branch information
mhetreayush committed Jun 7, 2024
1 parent 54ad063 commit f2b8daf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function App() {
React.useState<boolean>(false);
const [activeStepNumber, setActiveStepNumber] = React.useState<number>(1);
const [count, { startCountdown }] = useCountdown({
countStart: 6,
countStart: 10,
intervalMs: 1000,
});

Expand Down Expand Up @@ -191,15 +191,15 @@ function App() {
Cookies.set("siwe", JSON.stringify(session), {
expires: expirationTime,
});
}, 5);
}, 9000);

setTimeout(() => {
window.location.replace(
`/sign_in?redirect_uri=${encodeURI(redirect)}&state=${encodeURI(
state
)}&client_id=${encodeURI(client_id)}${encodeURI(oidc_nonce)}`
);
}, 6);
}, 10000);

return;
} catch (e) {
Expand Down

0 comments on commit f2b8daf

Please sign in to comment.