Skip to content

wavezync/nuxt-vue3-google-signin

Repository files navigation

nuxt-vue3-google-signin

Build npm npm NPM Docs

Nuxt Module for vue3-google-signin

Usage

Install package

npx nuxi@latest module add nuxt-vue3-google-signin

Initialize

Now you can add following entry to the nuxt.config.ts(or nuxt.config.js)

import { defineNuxtConfig } from 'nuxt/config'
 
export default defineNuxtConfig({
  modules: [
    'nuxt-vue3-google-signin'
  ],
  googleSignIn: {
    clientId: 'CLIENT ID OBTAINED FROM GOOGLE API CONSOLE',
  }
})

Checkout documentation for more.

Development

  • Run npm run dev:prepare to generate type stubs.
  • Use npm run dev to start playground in development mode.# Nuxt Module
  • Add your google client id to .env in playground