@adaptivestone/framework 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
### 3.0.1
|
|
2
|
+
|
|
3
|
+
[UPDATE] update deps
|
|
4
|
+
[UPDATE] getUserByTokens more logs
|
|
5
|
+
|
|
1
6
|
### 3.0.0
|
|
2
7
|
|
|
3
8
|
[BREAKING] Mongoose v6. Than a lot of changes:[mongoDB drive changes](https://github.com/mongodb/node-mongodb-native/blob/4.0/docs/CHANGES_4.0.0.md), [Mongoose changes](https://mongoosejs.com/docs/migrating_to_6.html).
|
package/package.json
CHANGED
|
@@ -7,6 +7,11 @@ class GetUserByToken extends AbstractMiddleware {
|
|
|
7
7
|
|
|
8
8
|
async middleware(req, res, next) {
|
|
9
9
|
let { token } = req.body;
|
|
10
|
+
this.logger.verbose(
|
|
11
|
+
`GetUserByToken token in BODY ${token}. Token if Authorization header ${req.get(
|
|
12
|
+
'Authorization',
|
|
13
|
+
)}`,
|
|
14
|
+
);
|
|
10
15
|
if (!token) {
|
|
11
16
|
token = req.get('Authorization');
|
|
12
17
|
if (!token || token === 'null') {
|