Skip to content

Commit 85b428d

Browse files
authored
feat: add followups (#1619)
* feat: add followups * cjsdlkf
1 parent ed2beb1 commit 85b428d

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/app/invalidsession/page.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@ import { toast } from 'sonner';
77

88
const page = () => {
99
useEffect(() => {
10-
signOut({
11-
callbackUrl: '/signin',
12-
});
13-
toast('Too many devices connected. Logging out!', {
14-
action: {
15-
label: 'Close',
16-
onClick: () => toast.dismiss(),
17-
},
18-
});
10+
(async () => {
11+
toast('Too many devices connected. Logging out!', {
12+
action: {
13+
label: 'Close',
14+
onClick: () => toast.dismiss(),
15+
},
16+
});
17+
await new Promise((resolve) => setTimeout(resolve, 1000));
18+
await signOut({
19+
callbackUrl: '/signin',
20+
});
21+
})();
1922
}, []);
2023

2124
return (

0 commit comments

Comments
 (0)