Skip to content

Commit

Permalink
Ensure redirectRequest is removed with errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-arroyo committed Aug 5, 2024
1 parent 2c1e193 commit 1b24bb2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/msal-browser/src/interaction_client/RedirectClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,11 @@ export class RedirectClient extends StandardInteractionClient {
this.browserStorage.removeRequestRetried();
throw e;
} finally {
this.browserStorage.removeTemporaryItem(
this.browserStorage.generateCacheKey(
TemporaryCacheKeys.REDIRECT_REQUEST
)
);
this.browserStorage.cleanRequestByInteractionType(
InteractionType.Redirect
);
Expand Down

0 comments on commit 1b24bb2

Please sign in to comment.