HubSession

tcmts.hub.session.HubSession · #67i3fhiz · type

Someone signed in: who, and how to call their PDS as them.

export interface HubSession {
  did: string;
  /** a request to their PDS (`/xrpc/...`), authenticated as them */
  fetch(path: string, init?: RequestInit): Promise<Response>;
  signOut(): Promise<void>;
}

used by