Skip to content

Commit

Permalink
feat: add followups (code100x#1619)
Browse files Browse the repository at this point in the history
* feat: add followups

* cjsdlkf
  • Loading branch information
devsargam authored Dec 6, 2024
1 parent ed2beb1 commit 85b428d
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/app/invalidsession/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ import { toast } from 'sonner';

const page = () => {
useEffect(() => {
signOut({
callbackUrl: '/signin',
});
toast('Too many devices connected. Logging out!', {
action: {
label: 'Close',
onClick: () => toast.dismiss(),
},
});
(async () => {
toast('Too many devices connected. Logging out!', {
action: {
label: 'Close',
onClick: () => toast.dismiss(),
},
});
await new Promise((resolve) => setTimeout(resolve, 1000));
await signOut({
callbackUrl: '/signin',
});
})();
}, []);

return (
Expand Down

0 comments on commit 85b428d

Please sign in to comment.