diff options
-rw-r--r-- | app.ts | 2 | ||||
-rw-r--r-- | config/default.json | 14 |
2 files changed, 16 insertions, 0 deletions
@@ -1,6 +1,7 @@ import feathers from '@feathersjs/feathers'; import express from '@feathersjs/express'; import socketio from '@feathersjs/socketio'; +import configuration from '@feathersjs/configuration' import '@feathersjs/transport-commons'; import cors from 'cors'; @@ -15,6 +16,7 @@ app.use(express.static(__dirname)); app.use(express.errorHandler()); app.use(cors()); +app.configure(configuration()); app.configure(express.rest()); app.configure(socketio()); app.configure(services); diff --git a/config/default.json b/config/default.json new file mode 100644 index 0000000..141bf4c --- /dev/null +++ b/config/default.json @@ -0,0 +1,14 @@ +{ + "authentication": { + "secret": "2JtbBy2ycQ1V3kQfPcSgXYmFsB7", + "service": "users", + "authStrategies": [ + "jwt", + "local" + ], + "local": { + "usernameField": "name", + "passwordField": "password" + } + } +} |