1.2.1 • Published 11 months ago

@evershop/google_login v1.2.1

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

Google authentication extension for EverShop

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

Breaking Changes: From version 1.2.0 All the configuration options are moved to .env file.

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 .env file:

  GOOGLE_LOGIN_CLIENT_ID="YOUR_GOOGLE_CLIENT_ID"
  GOOGLE_LOGIN_CLIENT_SECRET="YOUR_GOOGLE CLIENT_SECRET"
  GOOGLE_LOGIN_SUCCESS_REDIRECT_URL="https://example.com"
  GOOGLE_LOGIN_FAILURE_REDIRECT_URL="https://example.com/account/login"

Step 4: Run the build command

npm run build

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

1.2.0

11 months ago

1.2.1

11 months ago

1.1.0

2 years ago

1.0.0

2 years ago