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

I have edit this config, but it is not available to login. #1013

Closed
zhangzhaohong opened this issue Jul 22, 2020 · 9 comments
Closed

I have edit this config, but it is not available to login. #1013

zhangzhaohong opened this issue Jul 22, 2020 · 9 comments

Comments

@zhangzhaohong
Copy link

Step 1:
Set up local development environment. You've completed this step.

Step 2:
Create a Firebase project and obtain app's access keys.

Step 3:
Rename .env.example to .env and fill it with your own Firebase keys.

Make sure you added Sign in with Google / GitHub from Firebase Dashboard.

Originally posted by @liyasthomas in #1012 (comment)

@liyasthomas
Copy link
Member

Please explain your issue.

@zhangzhaohong
Copy link
Author

Please explain your issue.
I have rename the file to .env. And fill in many keys from the background which i have got after creating our web application. I fond that i can login when use the site like localhost:3000, but when i use ip:port or use the domain name, we still cannot login. Once i click the button, a small window show us for many seconds and dismiss, but we cannot login for any time

@liyasthomas
Copy link
Member

Is there any errors in console?

@zhangzhaohong
Copy link
Author

Is there any errors in console?

The project do not run on my machine, so i cannot get the log now. Should i do some operation on the background of our application.

@liyasthomas
Copy link
Member

What? Please check if there's any errors in console when you click the login button.

@zhangzhaohong
Copy link
Author

console

I have found that there is two request. They are the same, which is start of https://www.googleapis.com/identitytoolkit/v3/relyingparty/getProjectConfig, but one is 200, one is 403.

@liyasthomas
Copy link
Member

Check Firebase Docs on how to enable Auth from localhost. Access denied error is due to not whitelisting the request origin URL to Auth.

Do not create new issue tickets for the same.

@ghost
Copy link

ghost commented Jul 22, 2020

I have the same issue, problem is I created .env file and passed all required options but already again it sends request to get permission by your default key "AIzaSyCMsFreESs58-hRxTtiqQrIcimh4i1wbsM"

@liyasthomas
Copy link
Member

liyasthomas commented Jul 22, 2020

Edit and replace Firebase configs directly on fb.js file.
https://github.com/liyasthomas/postwoman/blob/42e283feb336e69922fd5de51ec6e81ca35e3697/helpers/fb.js#L6-L15

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