1.2.1 • Published 11 months ago
@evershop/google_login v1.2.1
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
.envfile.
Installation guide
Step 1: Install the extension using npm:
npm install @evershop/google_loginStep 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 buildNote: You can get the Google client ID and secret from the Google API Console.