@ctx-core/auth0-management 9.1.41 → 9.1.44
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,5 +1,29 @@
|
|
|
1
1
|
# @ctx-core/auth0-management
|
|
2
2
|
|
|
3
|
+
## 9.1.44
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @ctx-core/auth0@36.0.0
|
|
9
|
+
|
|
10
|
+
## 9.1.43
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- variable names: auth0_token=>auth0\_\_token
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @ctx-core/auth0@35.6.1
|
|
17
|
+
|
|
18
|
+
## 9.1.42
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- @ctx-core/auth0: ^35.4.0 -> ^35.5.0
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
- @ctx-core/auth0@35.6.0
|
|
26
|
+
|
|
3
27
|
## 9.1.41
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctx-core/auth0-management",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.44",
|
|
4
4
|
"description": "ctx-core auth0 management api",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ctx-core",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"getAll-client-grants-auth0": "./bin/getAll-client-grants-auth0.mjs"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@ctx-core/auth0": "^
|
|
31
|
+
"@ctx-core/auth0": "^36.0.0",
|
|
32
32
|
"@ctx-core/fetch-undici": "^2.3.82",
|
|
33
33
|
"@ctx-core/object": "^24.1.4",
|
|
34
34
|
"@ctx-core/uri": "^12.0.69",
|
|
@@ -9,8 +9,8 @@ import { auth0_management__token_ } from '../auth0_management__token_/index.js'
|
|
|
9
9
|
*/
|
|
10
10
|
export async function auth0__v2_client__fetch_get(ctx, params) {
|
|
11
11
|
const { client_id = process.env.AUTH0_CLIENT_ID, body, json, } = params
|
|
12
|
-
const
|
|
13
|
-
const authorization = header__access_token__verify(
|
|
12
|
+
const auth0_management__token = await auth0_management__token_(ctx)
|
|
13
|
+
const authorization = header__access_token__verify(auth0_management__token)
|
|
14
14
|
const url = `https://${AUTH0_DOMAIN__(ctx).$}/api/v2/clients/${client_id}`
|
|
15
15
|
const res = await fetch(url, {
|
|
16
16
|
method: 'PATCH',
|
|
@@ -10,8 +10,8 @@ import { auth0_management__token_ } from '../auth0_management__token_/index.js'
|
|
|
10
10
|
*/
|
|
11
11
|
export async function auth0__v2_client_grants__fetch_get(ctx, params) {
|
|
12
12
|
const { query, json } = params
|
|
13
|
-
const
|
|
14
|
-
const authorization = header__access_token__verify(
|
|
13
|
+
const auth0__token = await auth0_management__token_(ctx)
|
|
14
|
+
const authorization = header__access_token__verify(auth0__token)
|
|
15
15
|
const url = `https://${AUTH0_DOMAIN__(ctx).$}/api/v2/client-grants?${query || query_str_(json)}`
|
|
16
16
|
const res = await fetch(url, {
|
|
17
17
|
method: 'GET',
|
|
@@ -9,8 +9,8 @@ import { auth0_management__token_ } from '../auth0_management__token_/index.js'
|
|
|
9
9
|
*/
|
|
10
10
|
export async function auth0__v2_user__fetch_get(ctx, params) {
|
|
11
11
|
const { AUTH0_DOMAIN, user_id } = params
|
|
12
|
-
const
|
|
13
|
-
const authorization = header__access_token__verify(
|
|
12
|
+
const auth0__token = await auth0_management__token_(ctx)
|
|
13
|
+
const authorization = header__access_token__verify(auth0__token)
|
|
14
14
|
const url = `https://${AUTH0_DOMAIN}/api/v2/users/${user_id}`
|
|
15
15
|
const res = await fetch(url, {
|
|
16
16
|
method: 'GET',
|
|
@@ -10,8 +10,8 @@ import { auth0_management__token_ } from '../auth0_management__token_/index.js'
|
|
|
10
10
|
export async function auth0__v2_users_by_email__fetch_get(ctx, params) {
|
|
11
11
|
const { email } = params
|
|
12
12
|
const AUTH0_DOMAIN = params.AUTH0_DOMAIN || AUTH0_DOMAIN__(ctx).$
|
|
13
|
-
const
|
|
14
|
-
const authorization = header__access_token__verify(
|
|
13
|
+
const auth0__token = await auth0_management__token_(ctx)
|
|
14
|
+
const authorization = header__access_token__verify(auth0__token)
|
|
15
15
|
const url = `https://${AUTH0_DOMAIN}/api/v2/users-by-email?email=${encodeURIComponent(email)}`
|
|
16
16
|
const res = await fetch(url, {
|
|
17
17
|
method: 'GET',
|