sessionsFile

tcmts.atproto.sessionsFile · #54vihcvp · term · runs on the server

uses node:path

Where sign-ins are kept: $XDG_CONFIG_HOME/tcm/atproto.json (~/.config/tcm/atproto.json), readable only by you.

import os from "node:os";
import path from "node:path";

export const sessionsFile = (): string =>
  path.join(
    process.env.XDG_CONFIG_HOME || path.join(os.homedir(), ".config"),
    "tcm",
    "atproto.json",
  )

used by