1.0.0 • Published 9 months ago

@evershop/google_login v1.0.0

Weekly downloads
-
License
GNU GENERAL PUBLI...
Repository
github
Last release
9 months ago

Google authentication extension for EverShop

This extension allows customer to login to EverShop using your Google account.

Note: This extension requires EverShop version 1.0.0-rc.6 or higher.

Installation guide

Step 1: Install the extension using npm:

npm install @evershop/google_login

Step 2: Enable the extension

Edit the config/default.json file in the root directory of your EverShop installation and add the following line to the extensions section:

{
  ...,
  "system": {
    ...,
    "extensions": [
      ...,
      {
        "name": "google_login",
        "resolve": "node_modules/@evershop/google_login",
        "enabled": true,
        "priority": 10
      }
    ]
  }
}

Step 3: Add the Google client ID, secret and some other configuration options

Edit the config/default.json file:

{
  ...,
  "google_login": {
    "client_id": "YOUR_GOOGLE_CLIENT_ID",
    "client_secret": "YOUR_GOOGLE_CLIENT_SECRET",
    "success_redirect_url": "http://localhost:3000",
    "failure_redirect_url": "http://localhost:3000/account/login"
  }
}

Note: You can get the Google client ID and secret from the Google API Console.

1.0.0

9 months ago