Изучите Nuxt с коллекцией из 100+ советов!

nuxt-vue3-google-signin
nuxt-vue3-google-signin

Empower your Nuxt app with Google Sign-In, hassle-free

nuxt-vue3-google-signin

Build npm npm NPM Docs

Nuxt Module for vue3-google-signin

Usage

Install package

  • With NPM
npm install -S nuxt-vue3-google-signin
  • With Yarn
yarn add nuxt-vue3-google-signin
  • With PNPM
pnpm 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