Commit 43ce3ca6 authored by Erfan Jazeb Nikoo's avatar Erfan Jazeb Nikoo
Browse files

bugfix/importers_bug_fix

Fixed the Gitlab issue
parent 7b52a1dc
Pipeline #9628 passed with stages
in 4 minutes and 43 seconds
Showing with 12 additions and 7 deletions
+12 -7
......@@ -208,6 +208,7 @@ class OAuthProvider with ChangeNotifier {
_gitlabOAuthStream = _gitlabItemStream();
_gitlabOAuthStreamSubscription = _gitlabOAuthStream!.listen((item) {
_gitlabOAuthItem = item;
_gitlabUserExist = true;
resetGitlabStream();
notifyListeners();
});
......@@ -248,14 +249,18 @@ class OAuthProvider with ChangeNotifier {
Future<void> setGitlabTokens() async {
_gitlabOAuthItem ??= await getOAuthItem('gitlab');
var accessToken = _gitlabOAuthItem!.get('accessToken');
var refreshToken = _gitlabOAuthItem!.get('refreshToken');
if (_gitlabOAuthItem != null) {
var accessToken = _gitlabOAuthItem!.get('accessToken');
var refreshToken = _gitlabOAuthItem!.get('refreshToken');
if (accessToken != null) {
_gitlabService.setTokens(accessToken, refreshToken);
_gitlabUserExist = true;
if (accessToken != null) {
_gitlabService.setTokens(accessToken, refreshToken);
_gitlabUserExist = true;
} else {
AppLogger.err('Could not setup GitLab. Token is expired.');
}
} else {
AppLogger.err('Could not setup GitLab. Token is expired.');
_gitlabUserExist = false;
}
}
......
......@@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 2.1.10+0
version: 2.1.10+1
environment:
sdk: ">=2.12.0 <3.0.0"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment