Giter VIP home page Giter VIP logo

Comments (8)

trilloc avatar trilloc commented on June 1, 2024 2

It now works! my bad.. I had two json files for config.. !

Mucho thanks!

Cheers
Rajesh

from evershop.

ultimate-tester avatar ultimate-tester commented on June 1, 2024 1

https://www.npmjs.com/package/@evershop/google_login

Is that what you're looking for?

from evershop.

trilloc avatar trilloc commented on June 1, 2024

https://www.npmjs.com/package/@evershop/google_login

Is that what you're looking for?

Hi.. I npminstalled this, and put the extension and clientid/secret in the json file, but it is not showing a Google login.. Is there anything else that needs to be done?

Rgds
Rajesh

from evershop.

trilloc avatar trilloc commented on June 1, 2024

BTW, I also did the npm run build.. but the Google Signin is not showing up in the signup or signin screen..

from evershop.

treoden avatar treoden commented on June 1, 2024

Hi @trilloc ,

If you do it correctly, a button for Google login will be displayed in the login form.

Can you show the extension config? And did you make any modification to the default login form?

Thanks

from evershop.

trilloc avatar trilloc commented on June 1, 2024

Hi @treoden

Here is the config file.. I have two extensions.. (I have not modified the default login form..)
{
"shop" : {
"currency": "INR",
"language": "en",
"weightUnit": "kg"
},
"catalog": {
"product": {
"image": {
"thumbnail": {
"width": 100,
"height": 100
},
"listing": {
"width": 300,
"height": 300
},
"single": {
"width": 500,
"height": 500
}
}
},
"showOutOfStockProduct": false
},
"system": {
"file_storage": "local",
"theme": "friday",
"extensions": [
{
"name": "razorpay",
"resolve": "node_modules/evershop-razorpay/razorpay",
"enabled": true
},
{
"name": "google_login",
"resolve": "node_modules/@evershop/google_login",
"enabled": true,
"priority": 10
}
]
},
"google_login": {
"client_id": "12345678899-xxxxxxxxx.apps.googleusercontent.com",
"client_secret": "GXXXXXXXX",
"success_redirect_url": "http://localhost:3000",
"failure_redirect_url": "http://localhost:3000/account/login"
},
"themeConfig": {
"logo": {
"alt": "Like$",
"src": "/assets/logo.png",
"width": 50,
"height": 50
},
"headTags": {
"links": [],
"metas": [],
"scripts": []
},
"copyright": "© 2023 Likes Platform. All Rights Reserved."
}
}

from evershop.

treoden avatar treoden commented on June 1, 2024

It looks good.

Did you make any modification to the default login form?
Google login will automatically inject a login button to the form based on the AreaID. If you make the modification, make sure to keep this AreaID

from evershop.

trilloc avatar trilloc commented on June 1, 2024

Hi @treoden, I have not made any modifications to the login form.. (Again I cloned the repo to run this.. not from npx..)

The above config still doesnt work.. How do you mean to keep this AreaID?

Cheers
Rajesh

from evershop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.