react-oauth
react-oauth copied to clipboard
How to use GoogleLogin with fedcm
I am using GoogleLogin button
<GoogleLogin use_fedcm_for_prompt onSuccess={(credentialResponse) => { const { credential } = credentialResponse; if (credential) { //LOGIN USER } }} onError={() => { console.log("Signin with Google failed"); }} />
browser shows silent error
getUserInfo() failed because the user has not yet used FedCM on this site with the provided IDP
What do I need to fix this issue?