Skip to content
Snippets Groups Projects
Commit 32baf6f5 authored by michael.minelli's avatar michael.minelli
Browse files

SharedGitlabManager => Introduce oauthtoken

parent 04b3a985
No related branches found
No related tags found
No related merge requests found
...@@ -13,9 +13,8 @@ class SharedGitlabManager { ...@@ -13,9 +13,8 @@ class SharedGitlabManager {
setToken(token: string) { setToken(token: string) {
this.api = new Gitlab(Object.assign({ this.api = new Gitlab(Object.assign({
host : SharedConfig.gitlab.URL, host: SharedConfig.gitlab.URL
token: token }, this.refreshTokenFunction ? { oauthToken: token } : { token: token }));
}));
} }
constructor(token: string, refreshTokenFunction?: () => Promise<string>) { constructor(token: string, refreshTokenFunction?: () => Promise<string>) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment