-
-
Notifications
You must be signed in to change notification settings - Fork 795
Description
Hello, I am trying to integrate social login with a basic app created with yeoman.
The docs (http://docs.feathersjs.com/authentication/oauth2.html) only show strategy being specified in one of the server startup js files, i presume src/app.js or src/index.js
However, I would like to keep my social login app credentials in config/default.json as this seems where that should go.
The problem is that there seems no way to reference the global? variable FacebookStrategy from within the config.json file.
"strategy": "FacebookStrategy" simply shows turns up as a string and results in a "TypeError: Strategy is not a function" from node_modules/feathers-authentication/lib/services/oauth2/index.js:41
"strategy": FacebookStrategy
causes an "Unexpected token A" error in default.json file.