A Google authentication extension for EverShop.
npm install @evershop/google_loginThis extension allows customer to login to EverShop using your Google account.
> Breaking Changes: This version 2.1.0 requires EverShop version 2.0.1 or higher.
``bash`
npm install @evershop/google_login
Edit the config/default.json file in the root directory of your EverShop installation and add the following line to the extensions section:
`json`
{
...,
"system": {
...,
"extensions": [
...,
{
"name": "google_login",
"resolve": "node_modules/@evershop/google_login",
"enabled": true,
"priority": 10
}
]
}
}
Edit the .env file:
`bash`
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"
`bash``
npm run build
> Note: You can get the Google client ID and secret from the Google API Console.
This v.1.2.0 of google login extension is compatible with EverShop v.2.1.0 and above.