devbaji / vue3-google-login

Add Sign In With Google feature to your Vue 3 application
https://github.com/devbaji/vue3-google-login/
MIT License
202 stars 30 forks source link

FedCM not used in googleOneTap #55

Closed ShakedGold closed 6 months ago

ShakedGold commented 6 months ago

When using googleOneTap() I still get this warning:

[GSI_LOGGER]: Your client application uses one of the Google One Tap prompt UI status methods that may stop functioning when FedCM becomes mandatory.
Refer to the migration guide to update your code accordingly and opt-in to FedCM to test your changes.
Learn more: https://developers.google.com/identity/gsi/web/guides/fedcm-migration?s=dc#display_moment and
https://developers.google.com/identity/gsi/web/guides/fedcm-migration?s=dc#skipped_moment

I saw use_fedcm_for_prompt is enabled by default but it doesn't seem to solve it even when enabling it manually:

app.use(vue3GoogleLogin,
    clientId: <CLIENTID>
    idConfiguration: {
        use_fedcm_for_prompt: true,
    },
});
devbaji commented 6 months ago

@ShakedGold Can you check the latest version? I have added a patch to remove this warning