live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/gate


@orangecheck/gate / SubjectSource

Type Alias: SubjectSource

type SubjectSource = 
  | {
  from: "header";
  name?: string;
}
  | {
  from: "cookie";
  name?: string;
}
  | {
  from: "query";
  name?: string;
}
  | {
  from: "body";
  path?: string;
}
  | {
  from: (req: any) => string | undefined;
};

Defined in: types.ts:7

Where to pull the subject (address / attestation-id / identity) from on an incoming request.