diff --git a/projects/angular-auth-oidc-client/src/lib/flows/flows.service.ts b/projects/angular-auth-oidc-client/src/lib/flows/flows.service.ts index 3bbc532d0..543ae10f5 100644 --- a/projects/angular-auth-oidc-client/src/lib/flows/flows.service.ts +++ b/projects/angular-auth-oidc-client/src/lib/flows/flows.service.ts @@ -324,7 +324,9 @@ export class FlowsService { .pipe( switchMap((userData) => { if (!!userData) { - this.flowsDataService.setSessionState(callbackContext.authResult.session_state); + if (!callbackContext.refreshToken) { + this.flowsDataService.setSessionState(callbackContext.authResult.session_state); + } this.publishAuthorizedState(callbackContext.validationResult, callbackContext.isRenewProcess); return of(callbackContext); } else {