79130081

Date: 2024-10-27 07:28:54
Score: 4.5
Natty:
Report link

The LeftSideBar in my project is quite the same. I am facing a similar issue here. When user (try to) log out, they are not actually logging out.

here are the code snippets that might be helpful -

const { signOut } = useClerk();

const handleLogout = async () => {
        await signOut();
        router.push('/sign-in'); // Redirect to sign-in page after logout
    };

            <SignedIn>
                    <div className="flex cursor-pointer" onClick={handleLogout}>
                        <Image
                            src="/assets/logout.svg"
                            alt="logout"
                            width={24}
                            height={24}
                        />

                        <p className="text-light-2 max-lg:hidden px-4" >
                            Logout
                        </p>
                    </div>
            </SignedIn>

Have you resolved the issue? Tell me about it.

Reasons:
  • RegEx Blacklisted phrase (1.5): resolved the issue?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I am facing a similar issue
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Shreyas2604