signout from server in next js 13

can anyone tell me how can i signout from server in next auth?
signOut() is not working
and below code is also not working(i am using this inside server action
 cookies().set({
    name: "next-auth.csrf-token",
    maxAge: 0,
    value: "",
    httpOnly: true,
    sameSite: "lax",
    priority: "medium",
    domain: "/",
  });
  cookies().set({
    name: "next-auth.callback-url",
    maxAge: 0,
    value: "",
    sameSite: "lax",
    priority: "medium",
    httpOnly: true,
    domain: "/",
  });
  cookies().set({
    name: "next-auth.session-token",
    maxAge: 0,
    value: "",
    sameSite: "lax",
    priority: "medium",

    httpOnly: true,

    domain: "/",
  });
Was this page helpful?