Display notice for 10 seconds before redirect or logout
@@ -49,8 +49,10 @@ export class GitHubOAuthSetupComponent implements OnInit {
connectGitHub() {
this.updateGitHubOauthConfiguration().then(function() {
this.stepTwoComplete = true;
+ setTimeout(function() {
this.oauthService.logOut(true);
return this.oauthService.initImplicitFlow('autolink');
+ }, 10000);
}).catch(function(message) {
this.notificationService.message(NotificationType.DANGER, 'Error', message, false, null, []);
});
