signOut

tcmts.share.signOut · #vcheohx3 · term · runs on the server

uses tcmts.server.deleteCookie, which uses tcmts.server.setCookie, which uses tcmts.server.requestNow, which uses tcmts.server.callNow, which uses #tcm/host (call)

import { deleteCookie } from "#codebase/tcmts/server";
import { TOKEN_COOKIE } from "#codebase/tcmts/share";

export async function signOut(): Promise<void> {
  deleteCookie(TOKEN_COOKIE, { path: "/" });
}

uses

used by