MomenSherif / react-oauth

Google OAuth2 using the new Google Identity Services SDK for React 🚀
https://www.npmjs.com/package/@react-oauth/google
MIT License
1.13k stars 141 forks source link

Profile picture of the first account used to sign in, does not change when signing with another account #345

Open Almuqbali97 opened 7 months ago

Almuqbali97 commented 7 months ago

i implemented this code <GoogleLogin onSuccess={credentialResponse => { console.log(credentialResponse); handleGoogleAuthCallbackResponse(credentialResponse) }} onError={() => { console.log('Login Failed'); }} />

and each time i log in with new account the profile picture in the UI does not change, the logging in itself is successfull and getting the write credential each time, only the UI of the button does not update.