askedScope

tcmts.atproto.askedScope · #5v2yolv2 · function · runs anywhere

The scope asked for: as given, and, with server, a token for the app's own server (SIGN_IN_LXM).

import { rpc, SIGN_IN_LXM } from "#codebase/tcmts/atproto";
import type { SignInOptions } from "#codebase/tcmts/atproto";

export const askedScope = (o: SignInOptions): string =>
  o.server ? `${o.scope} ${rpc(SIGN_IN_LXM)}` : o.scope

uses

used by