@evershop/google_login
v2.1.1
Published
A Google authentication extension for EverShop.
Readme
Google authentication extension for EverShop
This extension allows customer to login to EverShop using your Google account.
Core compatibility
Breaking Changes: This version 2.1.0 requires EverShop version 2.0.1 or higher.
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.
Core compatibility
This v.1.2.0 of google login extension is compatible with EverShop v.2.1.0 and above.
