I am trying to implement the Sign in using Google feature in my Vue 3 application, I found some npm packages to implement this feature, but these packages which are soon going to be deprecated (This warning is shown in console).
I like to use Google Identity Services for adding Sign in using Google feature to my web app which provides features like One-tap sign-up and Automatic sign-in, how can I easily implement this feature in Vue 3?
I have created a small plugin vue3-google-login which uses Google Identity Services to implement features like Sign In With Google, One-tap sign-up and Automatic sign-in.
Here is a sample code to create a simple Google Sign In Button using vue3-google-login
First initialise the plugin in main.js with your Google API client ID
Then use GoogleLogin component like this