Hi,
In Chapter 15 of the nextJS dashboard documentation, the signOut does not redirect to the login page given the sample code. I have added the following in /sidenav.tsx :
<form
action={async () => {
'use server';
await signOut({redirect: false});
redirect('/login');
}}
>
Perhaps an update to the documentation should be made?
Hope this helps.