@drax/identity-front 0.0.24 → 0.0.25
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/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.25",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"module": "./src/index.ts",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"format": "prettier --write src/"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@drax/common-front": "^0.0.
|
|
28
|
-
"@drax/common-share": "^0.0.
|
|
29
|
-
"@drax/identity-share": "^0.0.
|
|
27
|
+
"@drax/common-front": "^0.0.25",
|
|
28
|
+
"@drax/common-share": "^0.0.25",
|
|
29
|
+
"@drax/identity-share": "^0.0.25"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@rushstack/eslint-patch": "^1.8.0",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"vite-plugin-dts": "^3.9.1",
|
|
49
49
|
"vitest": "^1.4.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "606497ae64684b17c757a72ed57a4a7dda0f1f8e"
|
|
52
52
|
}
|
|
@@ -11,13 +11,6 @@ class RoleRestProvider implements IRoleProvider {
|
|
|
11
11
|
this.httpClient = httpClient
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
setHttpClientToken(token: string): void {
|
|
15
|
-
this.httpClient.addHeader('Authorization', `Bearer ${token}`)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
removeHttpClientToken(): void {
|
|
19
|
-
this.httpClient.removeHeader('Authorization')
|
|
20
|
-
}
|
|
21
14
|
|
|
22
15
|
async fetchPermissions(): Promise<any> {
|
|
23
16
|
const url = '/api/permissions'
|
|
@@ -11,13 +11,6 @@ class TenantRestProvider implements ITenantProvider {
|
|
|
11
11
|
this.httpClient = httpClient
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
setHttpClientToken(token: string): void {
|
|
15
|
-
this.httpClient.addHeader('Authorization', `Bearer ${token}`)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
removeHttpClientToken(): void {
|
|
19
|
-
this.httpClient.removeHeader('Authorization')
|
|
20
|
-
}
|
|
21
14
|
|
|
22
15
|
|
|
23
16
|
async fetchTenant(): Promise<any> {
|
|
@@ -12,13 +12,6 @@ class UserRestProvider implements IUserProvider {
|
|
|
12
12
|
this.httpClient = httpClient
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
setHttpClientToken(token: string): void {
|
|
16
|
-
this.httpClient.addHeader('Authorization', `Bearer ${token}`)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
removeHttpClientToken(): void {
|
|
20
|
-
this.httpClient.removeHeader('Authorization')
|
|
21
|
-
}
|
|
22
15
|
|
|
23
16
|
async create(data: IUserCreate): Promise<IUser> {
|
|
24
17
|
const url = '/api/users'
|