Google Login System
h
RohilPatel (800)

Hello everyone! I made a google login system! It took a while, but it was worth it in the end.

Took 7 hrs to make

THIS IS A SECURE PROFILE SINCE IT IS WITH GOOGLE. I CANNOT RECIEVE YOUR PASSWORD BY ANY MEANS.

Do vote up this post if you like it and if it works for you!

You are viewing a single comment. View All
AdCharity (1264)

Also 7 hours is a bit of an understatement. Google requires that you submit your app to be verified to have it set to external users, which takes several days.

RohilPatel (800)

Really, that's not how it was for me........... @AdCharity

AdCharity (1264)

@RohilPatel ... I set up OAuth on my code jam thing so ummmmmmmmmmmmmmmmmmmmmmmmm it means you used external services and don't know how flow works /shrug

RohilPatel (800)

I used google console thing-a-mo-bobber and it worked... @AdCharity

RohilPatel (800)

How tho, @Vandesm14 got it to work, and all the people who liked this got it to work......do u have any idea why it's not working for u? @AdCharity

AdCharity (1264)

@RohilPatel mismatched uris means that the configuration of the project is wrong, it's not on my end. Other people have a similar error.

AdCharity (1264)

@RohilPatel if it was a different error it could be me, but it's not. Chances are people upvoted it without trying it anyways because you need to open it up in a new tab to actually load Google.

Theboys619 (13)

It's because the Redirect URI that was created was https://oauth.rohilpatel.repl.co/auth/login not https://oauth--rohilpatel.repl.co/auth/login
Replace the two dashes with a dot.
Repl.it hosts on both urls one with a dot and one with two dashes
@AdCharity

RohilPatel (800)

They appear to be the same @Theboys619

RohilPatel (800)

But it worked for them, even vandesm said so, and he is in the dB @AdCharity

RohilPatel (800)

So then I need two URLs? @Theboys619

AdCharity (1264)

@Theboys619 that doesn't even matter if OAuth is configured correctly in the Cloud Console. Regardless if you a dot or not, they need to be initialized the same way.

AdCharity (1264)

@RohilPatel you can add as many as you want really

AdCharity (1264)

@RohilPatel in node.js if you define it correctly you can add as many redirect urls as you want

RohilPatel (800)

Try it now, does it work. Respond ASAP @AdCharity