Skip to content

Commit

Permalink
Merge pull request #275 from near/fix-social-login2
Browse files Browse the repository at this point in the history
fix: Added missing postMessage on SocialButton
  • Loading branch information
hcho112 authored Aug 6, 2024
2 parents 3dfe448 + 8577cd0 commit 3fbdaf1
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ const SocialButton: React.FC<SocialButtonProps> = ({
parsedUrl.searchParams.set('public_key_lak', params.public_key);
parsedUrl.searchParams.delete('public_key');
}
window.parent.postMessage({
type: 'method',
method: 'query',
id: 1234,
params: {
request_type: 'complete_authentication',
}
}, '*');
window.open(parsedUrl.href, '_parent');
};

Expand Down

0 comments on commit 3fbdaf1

Please sign in to comment.