Skip to content

A simple project with one button for Google sign in for example purpose, you can get the email, name and stuff as variables

Notifications You must be signed in to change notification settings

thecodeorigin/nuxt-google-auth

Repository files navigation

Nuxt with Google sign in example

A simple project with only one button for Google sign in, take the 3 steps below

  • Create a .env file from the example one and fill it with your credentials
  • Create a app.html file from the example one to add some script tags for Google API stuff
  • You are now good to go, use the GoogleSigninButton.vue as you want, it's the core of this example

The access_token and currentUser got from logging in is stored in Vuex Store's state

Check out https://github.com/thecodeorigin to start your project faster

Build Setup

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate

For detailed explanation on how things work, check out Nuxt.js docs.

About

A simple project with one button for Google sign in for example purpose, you can get the email, name and stuff as variables

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published