tsledge 0.1.17 → 0.1.18
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/README.md
CHANGED
|
@@ -20,7 +20,7 @@ npm install mongoose@9.2.1
|
|
|
20
20
|
import mongoose from "mongoose";
|
|
21
21
|
|
|
22
22
|
export interface User {
|
|
23
|
-
ofUserGroup: mongoose.
|
|
23
|
+
ofUserGroup: mongoose.Types.ObjectId;
|
|
24
24
|
username: string;
|
|
25
25
|
email: string;
|
|
26
26
|
secretHash: string;
|
|
@@ -97,4 +97,4 @@ Search in all fields marked with `filter: true` option.
|
|
|
97
97
|
GET /?username=john_doe&limit=10&offset=5
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
-
Search only in the `username` field.
|
|
100
|
+
Search only in the `username` field.
|
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
export interface AuthUserPayload {
|
|
2
|
+
/**
|
|
3
|
+
* Identifier is required
|
|
4
|
+
*/
|
|
2
5
|
identifier: string;
|
|
6
|
+
/**
|
|
7
|
+
* JWT id, is required
|
|
8
|
+
*/
|
|
3
9
|
jti: string;
|
|
10
|
+
/**
|
|
11
|
+
* JWT expires, is set by express in sign()
|
|
12
|
+
*/
|
|
4
13
|
exp?: number;
|
|
14
|
+
/**
|
|
15
|
+
* JWT issued at, is set by express in sign()
|
|
16
|
+
*/
|
|
5
17
|
iat?: number;
|
|
6
18
|
}
|
|
7
19
|
export interface JWTCredentials {
|
|
20
|
+
/**
|
|
21
|
+
* JWT Access Token, expires in 15 minutes, signed with JwtSecret
|
|
22
|
+
*/
|
|
8
23
|
accessToken: string;
|
|
24
|
+
/**
|
|
25
|
+
* JWT Refresh Token, expires in 7 days, signed with JwtRefreshSecret
|
|
26
|
+
*/
|
|
9
27
|
refreshToken: string;
|
|
10
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Encoded string of AuthUserModel in base64 format
|
|
30
|
+
*/
|
|
31
|
+
appUser: string;
|
|
11
32
|
}
|
|
12
33
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/middleware/authentication/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/middleware/authentication/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "Niklas Wockenfuß",
|
|
3
3
|
"homepage": "https://niklaswockenfuss.de/",
|
|
4
4
|
"name": "tsledge",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.18",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "My playground and some helpful tools for web development ",
|
|
8
8
|
"main": "dist/index.js",
|