Re login after refresh error
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
This commit is contained in:
parent
761e987067
commit
3dca804acd
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user