@quatrain/auth 1.1.13 → 1.1.15
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.
|
@@ -16,6 +16,7 @@ export declare abstract class AbstractAuthAdapter implements AuthInterface {
|
|
|
16
16
|
abstract update(user: User, updatable: any): Promise<any>;
|
|
17
17
|
abstract delete(user: User): Promise<any>;
|
|
18
18
|
abstract getAuthToken(token: string): any;
|
|
19
|
+
abstract refreshToken(refreshToken: string): Promise<any>;
|
|
19
20
|
abstract revokeAuthToken(token: string): any;
|
|
20
21
|
abstract setCustomUserClaims(id: string, claims: any): any;
|
|
21
22
|
}
|
package/lib/Auth.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quatrain/auth",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.15",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Auth adapters commons",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
],
|
|
12
12
|
"author": "Quatrain Développement SAS <developers@quatrain.com>",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@quatrain/
|
|
14
|
+
"@quatrain/backend": "^1.1.12",
|
|
15
|
+
"@quatrain/core": "^1.1.12"
|
|
15
16
|
},
|
|
16
17
|
"devDependencies": {
|
|
17
18
|
"@tsconfig/recommended": "^1.0.1",
|
|
@@ -31,9 +32,9 @@
|
|
|
31
32
|
"wbuild": "tsc --watch",
|
|
32
33
|
"bump-to": "yarn version",
|
|
33
34
|
"hash": "node ../../bin/hashFolder.js",
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"publish": "yarn
|
|
37
|
-
"
|
|
35
|
+
"hash:persist": "yarn hash > .hash_latest.txt",
|
|
36
|
+
"hash:compare": "yarn hash > .hash_newest.txt && cmp -s .hash_latest.txt .hash_newest.txt",
|
|
37
|
+
"publish": "yarn hash:compare || yarn publish:process",
|
|
38
|
+
"publish:process": "yarn version patch && yarn build && yarn npm publish --access public && yarn hash:persist"
|
|
38
39
|
}
|
|
39
40
|
}
|