@ctx-core/auth0-management 9.7.106 → 9.7.110
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 +40 -0
- package/COMMIT_EDITMSG +1 -0
- package/bin/add-grant-password-auth0.mjs +2 -2
- package/bin/getAll-client-grants-auth0.mjs +2 -2
- package/package.json +10 -10
- package/src/auth0__user/index.test.ts +2 -2
- package/src/auth0__v2_user__GET__fetch/index.test.ts +3 -3
- package/src/auth0__v2_users_by_email__GET__fetch/index.test.ts +3 -3
- package/src/auth0_management__token__new/index.test.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @ctx-core/auth0-management
|
|
2
2
|
|
|
3
|
+
## 9.7.110
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @ctx-core/fetch: ^13.0.8 -> ^13.0.9
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @ctx-core/auth0@40.0.43
|
|
11
|
+
|
|
12
|
+
## 9.7.109
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- @ctx-core/fetch: ^13.0.7 -> ^13.0.8
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
- @ctx-core/auth0@40.0.42
|
|
21
|
+
|
|
22
|
+
## 9.7.108
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- @ctx-core/object: ^28.1.0 -> ^28.2.0
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
- @ctx-core/auth0@40.0.41
|
|
29
|
+
- @ctx-core/env@17.3.9
|
|
30
|
+
- @ctx-core/error@12.3.44
|
|
31
|
+
- @ctx-core/nanostores@6.0.12
|
|
32
|
+
- @ctx-core/uri@12.4.57
|
|
33
|
+
|
|
34
|
+
## 9.7.107
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- @ctx-core/fetch: ^13.0.6 -> ^13.0.7
|
|
39
|
+
- Updated dependencies
|
|
40
|
+
- Updated dependencies
|
|
41
|
+
- @ctx-core/auth0@40.0.40
|
|
42
|
+
|
|
3
43
|
## 9.7.106
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
package/COMMIT_EDITMSG
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { ctx__new } from '@ctx-core/object'
|
|
3
3
|
import { auth0__v2_client__GET__fetch2 } from '../src/index.js'
|
|
4
4
|
await main()
|
|
5
5
|
async function main() {
|
|
6
|
-
const ctx =
|
|
6
|
+
const ctx = ctx__new()
|
|
7
7
|
const [client] = await auth0__v2_client__GET__fetch2(ctx, {
|
|
8
8
|
json: {
|
|
9
9
|
grant_types: [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { import_meta_env_ } from '@ctx-core/env'
|
|
3
|
-
import {
|
|
3
|
+
import { ctx__new } from '@ctx-core/object'
|
|
4
4
|
import { auth0__v2_client_grants__GET__fetch2, auth0__v2__url_ } from '../src/index.js'
|
|
5
5
|
await main()
|
|
6
6
|
async function main() {
|
|
7
|
-
const ctx =
|
|
7
|
+
const ctx = ctx__new()
|
|
8
8
|
const [json] = await auth0__v2_client_grants__GET__fetch2(ctx, {
|
|
9
9
|
json: {
|
|
10
10
|
client_id: import_meta_env_().AUTH0_CLIENT_ID,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctx-core/auth0-management",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.110",
|
|
4
4
|
"description": "ctx-core auth0 management api",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ctx-core",
|
|
@@ -28,22 +28,22 @@
|
|
|
28
28
|
"getAll-client-grants-auth0": "./bin/getAll-client-grants-auth0.mjs"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@ctx-core/auth0": "^40.0.
|
|
32
|
-
"@ctx-core/env": "^17.3.
|
|
33
|
-
"@ctx-core/error": "^12.3.
|
|
34
|
-
"@ctx-core/fetch": "^13.0.
|
|
35
|
-
"@ctx-core/nanostores": "6.0.
|
|
36
|
-
"@ctx-core/object": "^28.
|
|
37
|
-
"@ctx-core/uri": "^12.4.
|
|
31
|
+
"@ctx-core/auth0": "^40.0.43",
|
|
32
|
+
"@ctx-core/env": "^17.3.9",
|
|
33
|
+
"@ctx-core/error": "^12.3.44",
|
|
34
|
+
"@ctx-core/fetch": "^13.0.9",
|
|
35
|
+
"@ctx-core/nanostores": "6.0.12",
|
|
36
|
+
"@ctx-core/object": "^28.2.0",
|
|
37
|
+
"@ctx-core/uri": "^12.4.57",
|
|
38
38
|
"auth0": "^4.0.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/auth0": "^3.3.6",
|
|
42
42
|
"@types/auth0-js": "^9.21.1",
|
|
43
|
-
"@types/sinon": "^10.0.
|
|
43
|
+
"@types/sinon": "^10.0.18",
|
|
44
44
|
"c8": "^8.0.1",
|
|
45
45
|
"check-dts": "^0.7.2",
|
|
46
|
-
"sinon": "^16.
|
|
46
|
+
"sinon": "^16.1.0",
|
|
47
47
|
"tsx": "^3.13.0",
|
|
48
48
|
"typescript": "next",
|
|
49
49
|
"uvu": "^0.5.6"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ctx__new } from '@ctx-core/object'
|
|
2
2
|
import { UserProfile } from 'auth0'
|
|
3
3
|
import { test } from 'uvu'
|
|
4
4
|
import { equal } from 'uvu/assert'
|
|
5
5
|
import { auth0__user$_, auth0__user_, auth0__user__set } from '../index.js'
|
|
6
6
|
test('auth0__user', ()=>{
|
|
7
|
-
const ctx =
|
|
7
|
+
const ctx = ctx__new()
|
|
8
8
|
const auth0__user = auth0__user__new()
|
|
9
9
|
equal(auth0__user$_(ctx).$, undefined)
|
|
10
10
|
equal(auth0__user_(ctx), undefined)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {AUTH0_DOMAIN__set} from '@ctx-core/auth0'
|
|
2
|
-
import {
|
|
2
|
+
import {ctx__new} from '@ctx-core/object'
|
|
3
3
|
import {type UserProfile} from 'auth0'
|
|
4
4
|
import {restore, stub} from 'sinon'
|
|
5
5
|
import {test} from 'uvu'
|
|
@@ -9,7 +9,7 @@ import {auth0__v2_user__GET__fetch, auth0__v2_user__GET__fetch2} from './index.j
|
|
|
9
9
|
|
|
10
10
|
test.after.each(() => restore())
|
|
11
11
|
test('auth0__v2_user__GET__fetch', async () => {
|
|
12
|
-
const ctx =
|
|
12
|
+
const ctx = ctx__new()
|
|
13
13
|
AUTH0_DOMAIN__set(ctx, 'myapp.auth0.com')
|
|
14
14
|
auth0_management__init(ctx, {
|
|
15
15
|
AUTH0_MANAGEMENT_ID: 'AUTH0_MANAGEMENT_ID',
|
|
@@ -24,7 +24,7 @@ test('auth0__v2_user__GET__fetch', async () => {
|
|
|
24
24
|
equal(await response.json(), auth0__user)
|
|
25
25
|
})
|
|
26
26
|
test('auth0__v2_user__GET__fetch2', async () => {
|
|
27
|
-
const ctx =
|
|
27
|
+
const ctx = ctx__new()
|
|
28
28
|
AUTH0_DOMAIN__set(ctx, 'myapp.auth0.com')
|
|
29
29
|
auth0_management__init(ctx, {
|
|
30
30
|
AUTH0_MANAGEMENT_ID: 'AUTH0_MANAGEMENT_ID',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AUTH0_DOMAIN__set } from '@ctx-core/auth0'
|
|
2
|
-
import {
|
|
2
|
+
import { ctx__new } from '@ctx-core/object'
|
|
3
3
|
import { type Auth0UserProfile } from 'auth0-js'
|
|
4
4
|
import { restore, stub } from 'sinon'
|
|
5
5
|
import { test } from 'uvu'
|
|
@@ -13,7 +13,7 @@ test.after.each(()=>{
|
|
|
13
13
|
restore()
|
|
14
14
|
})
|
|
15
15
|
test('auth0__v2_users_by_email__GET__fetch', async ()=>{
|
|
16
|
-
const ctx =
|
|
16
|
+
const ctx = ctx__new()
|
|
17
17
|
AUTH0_DOMAIN__set(ctx, 'myapp.auth0.com')
|
|
18
18
|
auth0_management__init(ctx, {
|
|
19
19
|
AUTH0_MANAGEMENT_ID: 'AUTH0_MANAGEMENT_ID',
|
|
@@ -28,7 +28,7 @@ test('auth0__v2_users_by_email__GET__fetch', async ()=>{
|
|
|
28
28
|
equal(response.status, 200)
|
|
29
29
|
})
|
|
30
30
|
test('auth0__v2_users_by_email__GET__fetch2', async ()=>{
|
|
31
|
-
const ctx =
|
|
31
|
+
const ctx = ctx__new()
|
|
32
32
|
AUTH0_DOMAIN__set(ctx, 'myapp.auth0.com')
|
|
33
33
|
auth0_management__init(ctx, {
|
|
34
34
|
AUTH0_MANAGEMENT_ID: 'AUTH0_MANAGEMENT_ID',
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AUTH0_DOMAIN__set } from '@ctx-core/auth0'
|
|
2
|
-
import {
|
|
2
|
+
import { ctx__new } from '@ctx-core/object'
|
|
3
3
|
import { restore, stub } from 'sinon'
|
|
4
4
|
import { test } from 'uvu'
|
|
5
5
|
import { equal } from 'uvu/assert'
|
|
6
6
|
import { auth0_management__init, auth0_management__token__new } from '../index.js'
|
|
7
7
|
test.after.each(()=>restore())
|
|
8
8
|
test('auth0_management__token__new|error', async ()=>{
|
|
9
|
-
const ctx =
|
|
9
|
+
const ctx = ctx__new()
|
|
10
10
|
AUTH0_DOMAIN__set(ctx, 'myapp.auth0.com')
|
|
11
11
|
auth0_management__init(ctx, {
|
|
12
12
|
AUTH0_MANAGEMENT_ID: 'AUTH0_MANAGEMENT_ID',
|