-
Notifications
You must be signed in to change notification settings - Fork 20
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
Uncaught Error: client_id is required for code #62
Comments
Thanks to your question!
https://github.com/mironal/electron-oauth-helper/blob/master/example/src/main/config.example.js may help to you. |
I configured it like the example shows by just pasting in the firebase config.--Sent from Yandex.Mail for mobile01.11.2018, 16:09, "mironal" <[email protected]>:Thanks to your question!
client_id is required parameter. Did you configure this?
https://github.com/mironal/electron-oauth-helper/blob/master/example/src/main/config.example.js may help to you.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
Which OAuth Provider are you using? |
The second one
|
Do you set and, Is there a similar error even if I run it in the example program? (Do not forget to rename config.example.js to config.js) |
No and there is a similar error in the example.
|
Hmm. I tried Google's OAuth2 using example code, but no error You need to set "response_type" like the following code. const GoogleClientWebApp = {
client_id: "your client id", // <- rewrite your client id
client_secret: "your client secret", // <- rewrite your client secret
redirect_uri: "your redirect uri", // <- rewrite your redirect uri
authorize_url: "https://accounts.google.com/o/oauth2/v2/auth",
response_type: "token", // <- Do not forget this.
scope: "https://www.googleapis.com/auth/userinfo.profile",
} |
I’m not using `GoogleClientWebApp` because I saw it not being used with firebase in config.example.js.
|
I'm using Firebase and I'm getting this error. How do I fix it?
The text was updated successfully, but these errors were encountered: