Comment logging
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
2023-04-11 11:33:11 +02:00
parent 2a31771ac6
commit b8f8f27794
5 changed files with 18 additions and 18 deletions

View File

@@ -182,18 +182,18 @@ export class AppCommonEffects {
ofType(appCommonActions.FAIL),
map((action) => {
const failAction = action as appCommonActions.Fail;
console.debug(failAction.payload)
//console.debug(failAction.payload)
return null;
})),{dispatch:false});
online$ = createEffect(() => this.actions$.pipe(
ofType(appCommonActions.ONLINE),
switchMap((action) => {
console.debug("Online: Check token");
//console.debug("Online: Check token");
if(!this.oauthService$.hasValidAccessToken()) {
console.debug("No valid token, try to refresh");
//console.debug("No valid token, try to refresh");
if(this.oauthService$.getRefreshToken() != null ) {
console.debug("We have a refresh token");
//console.debug("We have a refresh token");
this.oauthService$.refreshToken();
}
}