Skip to content

Commit c7a2917

Browse files
authored
Repair item 27777463: Checking for messages only from OAuth2 popup (#2828)
1 parent 647d348 commit c7a2917

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/services/oauthService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,9 @@ export class OAuthService {
329329

330330
const receiveMessage = async (event: MessageEvent<any>) => {
331331
try {
332+
if (!popup || event.source !== popup) {
333+
return; // Ignore messages not from our popup
334+
}
332335
const result = await listener(event);
333336
resolve(result);
334337
}

0 commit comments

Comments
 (0)