From 761e987067a230799d5bd480aab6cca1791899c1 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Mon, 20 Jan 2020 18:03:04 +0100 Subject: [PATCH] navigate after refresh --- projects/common/src/fm/shared/app.config.factory.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/common/src/fm/shared/app.config.factory.ts b/projects/common/src/fm/shared/app.config.factory.ts index 6a6d66d..2dfbd7e 100644 --- a/projects/common/src/fm/shared/app.config.factory.ts +++ b/projects/common/src/fm/shared/app.config.factory.ts @@ -40,7 +40,9 @@ export function appConfigFactory(injector:Injector, appConfig: AppConfig, oauthS if (!oauthService.hasValidAccessToken()) { if(appConfig.getConfig("grantType") == "code") if(oauthService.getRefreshToken() != null ) { - oauthService.refreshToken(); + oauthService.refreshToken().then(() => { + router.navigateByUrl(urlPath); + }) } else { oauthService.initCodeFlow(urlPath); }