Skip to content

Commit

Permalink
Remove onRedirectNavigate callback function in native ATRedirect calls (
Browse files Browse the repository at this point in the history
#7193)

We cannot pass functions in Message Channel
  • Loading branch information
lalimasharda authored Jul 11, 2024
1 parent b07a985 commit 2adfb68
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Remove onRedirectNative call back function in native ATRedirect calls #7193",
"packageName": "@azure/msal-browser",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -288,13 +288,17 @@ export class NativeInteractionClient extends BaseInteractionClient {
this.logger.trace(
"NativeInteractionClient - acquireTokenRedirect called."
);
const nativeRequest = await this.initializeNativeRequest(request);

const { ...nativeTokenRequest } = nativeRequest;
const { ...remainingParameters } = request;
delete remainingParameters.onRedirectNavigate;

const nativeRequest = await this.initializeNativeRequest(
remainingParameters
);

const messageBody: NativeExtensionRequestBody = {
method: NativeExtensionMethod.GetToken,
request: nativeTokenRequest,
request: nativeRequest,
};

try {
Expand Down

0 comments on commit 2adfb68

Please sign in to comment.