Welcome to the Kinde community

Updated 4 months ago

Quick and Urgent about logout component

At a glance

The community member is using the LogoutLink component from the @kinde-oss/kinde-auth-nextjs/components library and is wondering if it only works inside server components. They mention that after turning their component into a client component, they have not been able to log out.

Another community member responds that the LogoutLink component should work in both client and server components. The original poster then confirms that they re-created their component and saw the error, thanking the other community member.

Plain Text
import { LogoutLink } from "@kinde-oss/kinde-auth-nextjs/components";

Does the logout component only work inside server components ? I turned my component into client and I've not been able to logout since then
p
I
2 comments
Logout Link if imported as above should work in both client and server components
Yeah I re-created my component and saw the error thanks
Add a reply
Sign up and join the conversation on Discord