Share your repls and programming experiences

← Back to all posts
Google Login System
h
RohilPatel (635)

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!

Commentshotnewtop
nN34398Ff (68)

THAT IS AMAZING!!!!!!!!!!!!!!!!!!!!!!!!
HOW IS THAT EVEN POSSIBLE????
ARE YOU A HACKRE?!!?!?!?!?!

RohilPatel (635)

Oh yes! I'm a big boy hacker! @nN34398Ff

RohilPatel (635)

Do u know html, css, js? Wanna do collaboration? @nN34398Ff

NotTani (44)

@nN34398Ff If you want to create something like this, look up OAUTH and Sign In With Google

CodeABC123 (199)

Please create a privacy policy.

CodeABC123 (199)

And I’m never going to use this thing without it. @RohilPatel

nN34398Ff (68)

I can't believe my worthless text speed editor is more popular than this; people should start paying attention to the goodies

[deleted]

@nN34398Ff people might like your project better so it might not be worthless after all.

RohilPatel (635)

Well, u better not be saying this is worthless lol @CreeperKING112

[deleted]

@RohilPatel it.....IS!JK also nice you can replace gmail with this! not sure if that made sense. but not worth less.

RohilPatel (635)

HASHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA! THATS SO TRUE @CreeperKING112

SeanLynch3 (3)

Do you care if I fork this and make some improvments

RohilPatel (635)

No, as long as you don't make a post about it, and joining my project! What's ur discord? @SeanLynch3

SeanLynch3 (3)

Qmt-Malware#9048 but if u need to contact me email [email protected]@RohilPatel

RohilPatel (635)

I see u already have CyberChat! U a fan? Lol @SeanLynch3

SeanLynch3 (3)

XD I also code on a school ipad with halal restrictions @RohilPatel

SeanLynch3 (3)

Hey use that email and email me cuz I grounded from all my electronics
@RohilPatel

SeanLynch3 (3)

I kinda wanna see if can hack this

RohilPatel (635)

Hack my repl? U can pretty easily @SeanLynch3

AgastyaSandhuja (28)

this is very cool.
You never fail to surprise the repl.it community with more and more projects!

RohilPatel (635)

Thank you very much. I'm sorry, I haven't noticed you if you have been following my projects, but I'd like to make it up to you if I could get your discord. Thank you! @AgastyaSandhuja

AgastyaSandhuja (28)

sure! My discord is AwesomeAg#3141
we could collab on a project one time! @RohilPatel

RohilPatel (635)

I friended you! I would love to do a collab! @AgastyaSandhuja

IreoluwaRaufu (204)

Very Impressive... I'm jealous

RohilPatel (635)

Lol. Are u Dan L games? Check the console! @IreoluwaRaufu

IreoluwaRaufu (204)

@RohilPatel bro chill u tryna steal my identity or sumthin lmao

RohilPatel (635)

No lol, I can't or google would have been sued by now @IreoluwaRaufu

thejoeman24 (21)

I found this on RoseWeb
I love it!

Theboys619 (0)

To get it to work replace the two dashes in the url with a dot.

RohilPatel (635)

What would that do? It already works for some people @Theboys619

Theboys619 (0)

Because using the -- site doesn't work because the URIs are mismatched.
Using https://oauth--rohilpatel.repl.co/

Using https://oauth.rohilpatel.repl.co/auth/login

@RohilPatel

RohilPatel (635)

Ok, so tell me what to do, but really clearly @Theboys619

RohilPatel (635)

Does it now work with both? @Theboys619

RohilPatel (635)

So it should work for everyone? @Theboys619

RohilPatel (635)

Ty so much, but why do people use the non secure version? (Http) instead of https ? @Theboys619

Theboys619 (0)

I don't know but I think sometimes it uses the one with a dot (secure or non secure) or with the dashes (secure or non secure). Some repls I have made, and pressing the open button redirected me to the one with a dot. But it appears both of them are hosted with secure and non-secure versions.
@RohilPatel

Theboys619 (0)

Tested it on two other devices and I think it should work for others. @RohilPatel

AdCharity (1112)

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 (635)

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

AdCharity (1112)

@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 (635)

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

RohilPatel (635)

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 (1112)

@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 (1112)

@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 (0)

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 (635)

They appear to be the same @Theboys619

RohilPatel (635)

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

RohilPatel (635)

So then I need two URLs? @Theboys619

AdCharity (1112)

@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 (1112)

@RohilPatel you can add as many as you want really

AdCharity (1112)

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

RohilPatel (635)

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

SilentShadowBla (498)

when i click login this happens...