endSignIn
uses tcmts.atproto.lib.server.session, which uses tcmts.atproto.lib.server.sessionOf, which uses #tcm/host (database)
Sign the caller out of the app's server.
import { clearSession, session, setSession } from "#codebase/tcmts/atproto/lib/server"; export async function endSignIn(): Promise<void> { const { atproto: _, ...rest } = session(); if (Object.keys(rest).length) setSession(rest); else clearSession(); }
uses
- tcmts.atproto.lib.server.clearSession
- tcmts.atproto.lib.server.session
- tcmts.atproto.lib.server.setSession