Skip to content

TypeScript API / @laikacms/gitlab / GitlabAuth

Interface: GitlabAuth ​

Authentication for the GitLab REST API. Exactly one of token/oauthToken/jobToken is used.

Properties ​

headers? ​

ts
readonly optional headers?: Readonly<Record<string, string>>;

Extra headers merged into every request.


jobToken? ​

ts
readonly optional jobToken?: string;

CI job token. Sent as the JOB-TOKEN header.


oauthToken? ​

ts
readonly optional oauthToken?: string;

OAuth2 bearer token. Sent as Authorization: Bearer ….


token? ​

ts
readonly optional token?: string;

Personal access token. Sent as the PRIVATE-TOKEN header.

Released under the MIT License.