patelmayankce / react-apple-login

A Apple Log-in Component for React
MIT License
65 stars 21 forks source link

facebook login triggers Apple Login callback #12

Closed chin2km closed 3 years ago

chin2km commented 4 years ago

Apple login callback is triggered if the window.location url params include code query. But Facebook also adds a code query to the FB login callback url. Thus Apple login callback gets triggered when you login successfully with FB login button.

patelmayankce commented 4 years ago

@chin2km , yeah you are right. Actually FB & Apple both use the same query parameter which is code. And in Apple, we only have a way to trigger callback which is code in query parameter.

pantelispanayiotou commented 4 years ago

are there any workarounds?

patelmayankce commented 3 years ago

@chin2km @pantelispanayiotou you guys can use the latest version which have the option usePopup to avoid this issue.