@adonis-agora/authkit-testing 0.5.3 → 0.6.1

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.
Files changed (2) hide show
  1. package/README.md +3 -1
  2. package/package.json +7 -4
package/README.md CHANGED
@@ -27,7 +27,7 @@ Mints a **real** RS256-signed JWT plus the public JWKS that validates it. Return
27
27
 
28
28
  ```ts
29
29
  import { mintTestIdToken, serveJwks } from '@adonis-agora/authkit-testing'
30
- import { resolvers } from '@adonis-agora/authkit-client'
30
+ import { conventionEndpoints, resolvers } from '@adonis-agora/authkit-client'
31
31
 
32
32
  const { token, jwks } = await mintTestIdToken({
33
33
  issuer: 'https://idp.test',
@@ -43,6 +43,8 @@ const resolver = await factory.resolver({
43
43
  clientId: 'my-app',
44
44
  sessionKey: 'authkit',
45
45
  globalRolesClaim: 'roles',
46
+ endpoints: async () => conventionEndpoints('https://idp.test'),
47
+ logger: { warn: () => {} },
46
48
  })
47
49
  // ... use resolver in your host test, then:
48
50
  await served.close()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonis-agora/authkit-testing",
3
- "version": "0.5.3",
3
+ "version": "0.6.1",
4
4
  "description": "Test helpers for apps built on AuthKit: mint real signed ID tokens with a local JWKS, fake authenticators and account stores, and build valid identities — so host apps can test auth flows without booting an IdP.",
5
5
  "license": "MIT",
6
6
  "author": "dudousxd",
@@ -35,12 +35,15 @@
35
35
  ".": "./build/index.js",
36
36
  "./types": "./build/index.js"
37
37
  },
38
+ "engines": {
39
+ "node": ">=24"
40
+ },
38
41
  "dependencies": {
39
- "@adonis-agora/authkit-core": "0.9.0",
40
- "jose": "6.2.12"
42
+ "@adonis-agora/authkit-core": "0.10.0",
43
+ "jose": "6.2.13"
41
44
  },
42
45
  "devDependencies": {
43
- "@adonis-agora/authkit-client": "0.18.8",
46
+ "@adonis-agora/authkit-client": "0.20.1",
44
47
  "@adonisjs/tsconfig": "2.0.0",
45
48
  "@japa/assert": "4.2.0",
46
49
  "@japa/runner": "5.3.0",