Skip to content
Français

GitlabTokenOptions

import type { GitlabTokenOptions } from "@elie-laloum/outpost";
  • tokenRequired
    TriggerSecret
    Secret token compared in constant time with X-Gitlab-Token, or a callback returning every currently accepted token; weaker because the body is not signed. An empty string throws at creation; a callback that fails or returns nothing denies requests.
export interface GitlabTokenOptions {
  /** Plain-text `X-Gitlab-Token`; weaker, since the request body is not signed. */
  readonly token: TriggerSecret;
}