diff --git a/projects/common/src/fm/shared/app.config.factory.ts b/projects/common/src/fm/shared/app.config.factory.ts index 2dfbd7e..51ef18e 100644 --- a/projects/common/src/fm/shared/app.config.factory.ts +++ b/projects/common/src/fm/shared/app.config.factory.ts @@ -42,7 +42,10 @@ export function appConfigFactory(injector:Injector, appConfig: AppConfig, oauthS if(oauthService.getRefreshToken() != null ) { oauthService.refreshToken().then(() => { router.navigateByUrl(urlPath); - }) + }).catch(() => { + oauthService.initCodeFlow(urlPath); + } + ) } else { oauthService.initCodeFlow(urlPath); }