
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
vue3-google-login
Advanced tools
Add a Login with Google feature to your Vue 3 application using Google Identity Services
vue3-google-login is a lightweight, easy-to-use Vue 3 plugin for implementing Google Sign In and authentication in your Vue 3 applications. This package provides seamless integration with Google Identity Services and the Google 3P Authorization JavaScript Library, enabling you to add Google OAuth2 login functionality to your Vue 3 projects with minimal setup.
Perfect for Vue 3 developers looking for a simple solution to add Google login, Google signin, or Google OAuth2 authentication to their applications. Supports TypeScript and works with Vue 3.0.3+.
📚 Full documentation available at: https://devbaji.github.io/vue3-google-login/
Install the vue3-google-login package using your preferred package manager:
NPM:
npm install vue3-google-login
Yarn:
yarn add vue3-google-login
CDN: If you prefer to use vue3-google-login via a CDN, you can include the following script in your HTML file:
<script src="https://cdn.jsdelivr.net/npm/vue3-google-login@2.0.36/dist/index.umd.min.js"></script>
Initialize the vue3-google-login plugin in your main.js or main.ts file. This will register the GoogleLogin component globally and configure Google OAuth2 authentication:
import { createApp } from 'vue'
import App from './App.vue'
import vue3GoogleLogin from 'vue3-google-login'
const app = createApp(App)
app.use(vue3GoogleLogin, {
clientId: 'YOUR_GOOGLE_CLIENT_ID'
})
app.mount('#app')
💡 Tip: If you don't want to initialize and register the
GoogleLogincomponent globally, you can directly import it fromvue3-google-loginpackage and use theclient-idprop. Some functions also accept aclientIdoption to avoid initializing the plugin. See the full documentation for more details.
Once the plugin is installed and initialized, you can use the GoogleLogin component anywhere in your Vue 3 application. This component renders a Google sign-in button that opens a popup for Google authentication:
<script setup>
const callback = (response) => {
// This callback will be triggered when the user selects or login to
// his Google account from the popup
console.log("Handle the response", response)
}
</script>
<template>
<GoogleLogin :callback="callback"/>
</template>
This Vue 3 Google Login plugin supports many advanced features:
📖 For complete documentation, examples, and advanced usage, visit: https://devbaji.github.io/vue3-google-login/
FAQs
Add a Login with Google feature to your Vue 3 application using Google Identity Services
The npm package vue3-google-login receives a total of 8,073 weekly downloads. As such, vue3-google-login popularity was classified as popular.
We found that vue3-google-login demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.