Refactor token refresh flows
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
@@ -202,12 +202,10 @@ export class AppCommonEffects {
|
||||
console.debug("No valid token, try to refresh");
|
||||
if(this.oauthService$.getRefreshToken() != null ) {
|
||||
console.debug("We have a refresh token");
|
||||
this.oauthService$.refreshToken().then(() => {
|
||||
this.store$.dispatch(new appCommonActions.InitUser());
|
||||
});
|
||||
this.oauthService$.refreshToken();
|
||||
}
|
||||
}
|
||||
return of(undefined);
|
||||
}
|
||||
return of(undefined);
|
||||
}));
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user