Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signin not working #4

Open
tassawarr opened this issue Aug 21, 2018 · 14 comments
Open

Signin not working #4

tassawarr opened this issue Aug 21, 2018 · 14 comments

Comments

@tassawarr
Copy link

Signin with Google isn't working.

@niceropez
Copy link

niceropez commented Aug 27, 2018

It worked for me. Just create an Oauth credential at https://console.developers.google.com and add whitelist http://localhost:3000, then copy the name of the credential in src/components/SignWith.js, also remember to set up your account in cloudinary and change the data in server/app.js

@tassawarr
Copy link
Author

it's depolyed on heroku. So, i just want to bring admin in life.

@doions
Copy link

doions commented Sep 14, 2018

Signin with Google isnt working for me as well. please help

@tassawarr
Copy link
Author

i posted it as well. But couldn't get a specific reply.

@doions
Copy link

doions commented Sep 14, 2018

@tassawarr could you solve it? What's your specific problem. I could not find where to edit in the signin.js but I changed the Oauth.js. but still, it's not working. when I click on the button, its non-responsive.

@tassawarr
Copy link
Author

actually, it will take time. Because the problem is unspecified as well. So, I have to check it further. I'm trying to connect the original author of this repo.

@doions
Copy link

doions commented Sep 14, 2018

i am trying firebase module, let me try using it. it might work. ill update if it works

@tassawarr
Copy link
Author

Okay, i don't know enough about firebase and not enough experienced as well. So, thanks for your kindness.

@doions
Copy link

doions commented Sep 14, 2018

@niceropez
Copy link

Guys I don't understand what they mean exactly. I can't find the url of the deploy in heroku, it is only referred to in the post of medium: https://my-medium-clone.herokuapp.com/ which is not, this url is a project made with ruby that served as inspiration for this project. If I'm wrong with this statement let me know.

I did the following:
1- I cloned the repository,
2- I installed all the dependencies
3- I changed "clientId" in SingIn.js (I created an OAuth credential in developers.google) and added http://localhost:3000 in Authorized JavaScript Sources // client side
4- I changed "cloudinary.config" (created an account in cloudinary and copied the required data) in app.js // server side

And I can run the repo locally without problems creating post and uploading images.

PS: This project is not finished, so there are some errors.

@lhferrh
Copy link

lhferrh commented Jan 2, 2019

@BiosTEC How did you add http://localhost:3000 to your whitelist. I cannot add localhost to it. if I try to add localhost I get this error "Invalid domain: must be a top private domain" and If I try localhost:3000 I get this other error "Invalid domain: cannot contain port."

I hope any of you guys did with a solution to test the app locally.

@bagussatriaio
Copy link

bagussatriaio commented Mar 16, 2019

Guys I don't understand what they mean exactly. I can't find the url of the deploy in heroku, it is only referred to in the post of medium: https://my-medium-clone.herokuapp.com/ which is not, this url is a project made with ruby that served as inspiration for this project. If I'm wrong with this statement let me know.

I did the following:
1- I cloned the repository,
2- I installed all the dependencies
3- I changed "clientId" in SingIn.js (I created an OAuth credential in developers.google) and added http://localhost:3000 in Authorized JavaScript Sources // client side
4- I changed "cloudinary.config" (created an account in cloudinary and copied the required data) in app.js // server side

And I can run the repo locally without problems creating a post and uploading images.

PS: This project is not finished, so there are some errors.

i do persist like this, but when logging its ask old google client id
image

Solved, dot forget to check dist folder ad change google login id on there

@BobAleena
Copy link

https://codeburst.io/build-simple-medium-com-on-node-js-and-react-js-a278c5192f47

follow this

the codeburst link is broken, but you can find the same article here now: https://medium.com/swlh/clone-medium-on-node-js-and-react-js-731cdfbb6878

@BobAleena
Copy link

To solve this problem, I only had to do the following:

updated the assigned value of 'clientId' in SignInWith.js with a Google OAuth 2.0 token
You will need to go to https://console.developers.google.com/ to create an OAuth 2.0 token and it will look like 'YOUR_TOKEN.apps. googleusercontent.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants