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

Can not sign in to Google #8

Closed
kaheetonaa opened this issue Feb 19, 2022 · 8 comments
Closed

Can not sign in to Google #8

kaheetonaa opened this issue Feb 19, 2022 · 8 comments

Comments

@kaheetonaa
Copy link

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

@alyssaxuu
Copy link
Owner

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

@kaheetonaa
Copy link
Author

kaheetonaa commented Feb 19, 2022 via email

@kaheetonaa
Copy link
Author

kaheetonaa commented Feb 19, 2022 via email

@alyssaxuu
Copy link
Owner

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

@kaheetonaa
Copy link
Author

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

@alyssaxuu
Copy link
Owner

alyssaxuu commented Feb 20, 2022

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

@kaheetonaa
Copy link
Author

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

@alyssaxuu
Copy link
Owner

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

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

2 participants