NextAuth credentials how to handle unauthorized user?
I have this parent component which distinguishes if the user is logged in or not and redirect the user in the specific case. I signed in to my app and deleted all my storage and cookie data which would result me being unauthorized.
But the redirect / condition does not work properly in this component: