node: jwt

This commit is contained in:
Sergey Linnik
2017-03-02 19:40:08 +03:00
parent c014250479
commit 1b73970ebc
5 changed files with 121 additions and 17 deletions

View File

@ -30,7 +30,16 @@
"name": "/public",
"path": "public"
}
]
],
"token": {
"enable": true,
"useforrequest": true,
"algorithmRequest": "HS256",
"authorizationHeader": "Authorization",
"authorizationHeaderPrefix": "Bearer ",
"secret": "secret",
"expiresIn": "5m"
}
},
"plugins": {
"url": "",