Skip to content

Commit

Permalink
Merge pull request #1896 from kockicica/main
Browse files Browse the repository at this point in the history
should fix #1852
  • Loading branch information
FabianGosebrink authored Feb 4, 2024
2 parents cc7bd14 + 02c7507 commit d4d613e
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,18 @@ export class HistoryJwtKeysCallbackHandlerService {
config: OpenIdConfiguration,
allConfigs: OpenIdConfiguration[]
): Observable<CallbackContext> {
let toWrite = { ...callbackContext.authResult };

if (!this.responseHasIdToken(callbackContext)) {
const existingIdToken = this.storagePersistenceService.getIdToken(config);

callbackContext.authResult = {
...callbackContext.authResult,
toWrite = {
...toWrite,
id_token: existingIdToken,
};
}

this.storagePersistenceService.write(
'authnResult',
callbackContext.authResult,
config
);
this.storagePersistenceService.write('authnResult', toWrite, config);

if (
config.allowUnsafeReuseRefreshToken &&
Expand Down

0 comments on commit d4d613e

Please sign in to comment.