From 7da6c6a8e4a3590dfb8569b9fc24b4054552c96f Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 15 Nov 2020 03:46:51 +0300 Subject: feat: setup authentication --- config/default.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 config/default.json (limited to 'config') diff --git a/config/default.json b/config/default.json new file mode 100644 index 0000000..ddc720f --- /dev/null +++ b/config/default.json @@ -0,0 +1,18 @@ +{ + "authentication": { + "secret": "2JtbBy2ycQ1V3kQfPcSgXYmFsB7", + "service": "users", + "entity": "user", + "authStrategies": [ + "jwt", + "local" + ], + "local": { + "usernameField": "\\username", + "passwordField": "password" + }, + "jwtOptions": { + "expiresIn": "30 days" + } + } +} -- cgit v1.2.3