Skip to content

refactor: prepare GitLab service for token refreshing

Tomas Vik requested to merge 561-token-refresh into main

This MR prepares GitLabService for refreshing OAuth tokens. The only place I could think of where it makes sense to do an asynchronous call to check the token validity is just before making the API call.

This means that the GitLabService must make the call to getCredentials asynchronously and in the follow-up MR, we'll introduce a mechanism that refreshes the token if necessary.

The two commits in this MR are trying to bring all access to credentials to a single asynchronous getCredentials method which will be overridden in the follow-up MR.

Related to #561 (closed)

Edited by Tomas Vik

Merge request reports