Skip to content

Cannot specify passport strategy in config/default.json #229

@ivanixgames

Description

@ivanixgames

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions