alyssaxuu / mapus

A map tool with real-time collaboration 🗺️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not sign in to Google

kaheetonaa opened this issue · comments

image

Hi,

I am a hobbyist who like design participatory solution. I found Mapus a great idea.
After I clone the git, change the config as the manual, I could not click in sign in google for further steps.

Does any one know the problem

Do any errors show up in the console? Did you set up Firebase correctly?

javascript - Web Google authentication with firebase - Stack Overflow https://stackoverflow.com/questions/44681352/web-google-authentication-with-firebase I found this error by searching the console log. Should I run your app through server like apache2 ?

On Sat, Feb 19, 2022 at 10:54 PM kahee tonaa @.> wrote: Dear Alyssaxuu/Mapus, Here's what appeared in the console when I click in > { > "code": "auth/operation-not-supported-in-this-environment", > "message": "This operation is not supported in the environment this > application is running on. "location.protocol" must be http, https or > chrome-extension and web storage must be enabled." > } The step I followed: 1. Clone directly Mapus from github 2. Register Firebase account and project, create a Realtime Database and enable Google Sign In in the Firebase console 3. Paste config directly from Firebase profile to index.html 4. Run index.html Thank you for your support, Kaheetonaa On Sat, Feb 19, 2022 at 9:06 PM Alyssa X @.> wrote: > Do any errors show up in the console? Did you set up Firebase correctly? > > — > Reply to this email directly, view it on GitHub > <#8 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AORYTUAPDUINLSRN4S4RM5LU4AA6LANCNFSM5O3OLI2Q > . > You are receiving this because you authored the thread.Message ID: > @.> > -- Kanaa Hanoi Architectural University (Mr.) Quang Huy Nguyen (Ms.) To Nga Huynh Tel: +84 0356056296 +84 0987806296 Email: * @. @.> @.** @.>
-- Kanaa Hanoi Architectural University (Mr.) Quang Huy Nguyen (Ms.) To Nga Huynh Tel: +84 0356056296 +84 0987806296 Email: * @.
@.> @.* @.**>

Ah yes indeed, it needs to be through a server. Any of these options here should work too, through localhost: https://stackoverflow.com/questions/38497334/how-to-run-html-file-on-localhost

Hi @alyssaxuu ,
After running on apache2 server, it worked. but this error appear.
image

Hi @alyssaxuu , After running on apache2 server, it worked. but this error appear. image

Right, you have to make sure you add any domains you want to use into the authorized list in firebase. I've updated the README to reflect that, wasn't very clear, sorry about that.

Screen Shot 2022-02-20 at 11 28 43 AM

@alyssaxuu
it works like charm now. thank you so much. if possible you should clarify some server and firebase problems in the introduction.
image

So glad to hear! I will do that for sure :)