-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Facebook auth id is not used from local.env.js with built project. #513
Comments
You have to fill local.env.js:
or have to set the environnemental variable |
For sure. I have filled local.env.js with correct values. (As I mentioned local started facebook auth works) |
@gintsgints are you asking about: |
yes. |
Does facebook: {
clientID: process.env.FACEBOOK_ID || 'id',
clientSecret: process.env.FACEBOOK_SECRET || 'secret',
callbackURL: (process.env.DOMAIN || '') + '/auth/facebook/callback'
} If so, thats where passport.use(new FacebookStrategy({
clientID: config.facebook.clientID,
clientSecret: config.facebook.clientSecret,
callbackURL: config.facebook.callbackURL
} Which is where passport is configured to use Does this help with your question? |
Actualy I think that this is not question but bug.
is not set with builded app. (as opposite to process.env.DOMAIN) |
If I replace in ``dist/server/config/environment/index.js`:
'id' and 'secret' with real values. Then everything works. |
I see. I actually miss read your OP. Hope this helps. |
Actually there are tons of ways to set environment variables, those are just a few that I mentioned. |
If setting enviroment variables is how it is supposed to work. Then question is answered. Thanks. |
I execute:
update server/config/local.env.js with correct infos.
Facebook auth works.
and after connection to application facebook auth sends to:
How to get cliend_id fill correctly?
The text was updated successfully, but these errors were encountered: