Skip to content

refactor: remove TokenService from GitLabService

Tomas Vik requested to merge 515-cleanup-gitlab-service into main

When we want to validate a token at the time it is being added by the user, we need a way to execute API requests without having the token stored in our local storage.

The current logic assumed that the token is already stored in the storage at the time we make any API request.

This MR changing GitLabService. Instead of using a global tokenService to get a token just before making the API request, the GitLabService now accepts the token in the constructor. That will allow us to try new tokens out without having to add them to the local storage.

Related to #515 (closed)

Edited by Tomas Vik

Merge request reports