Re login after refresh error
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good

This commit is contained in:
Willem Dantuma 2020-01-20 18:05:45 +01:00
parent 761e987067
commit 3dca804acd

View File

@ -42,7 +42,10 @@ export function appConfigFactory(injector:Injector, appConfig: AppConfig, oauthS
if(oauthService.getRefreshToken() != null ) { if(oauthService.getRefreshToken() != null ) {
oauthService.refreshToken().then(() => { oauthService.refreshToken().then(() => {
router.navigateByUrl(urlPath); router.navigateByUrl(urlPath);
}) }).catch(() => {
oauthService.initCodeFlow(urlPath);
}
)
} else { } else {
oauthService.initCodeFlow(urlPath); oauthService.initCodeFlow(urlPath);
} }