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 ) {
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user