@adonis-agora/authkit-server 0.80.1 → 0.81.0

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 (32) hide show
  1. package/README.md +2 -0
  2. package/build/commands/configure.js +5 -2
  3. package/build/commands/ui_preset.d.ts +16 -1
  4. package/build/commands/ui_preset.js +24 -1
  5. package/build/src/host/ui-dist/assets/index-YKQ-RZLD.js +155 -0
  6. package/build/src/host/ui-dist/index.html +1 -1
  7. package/build/stubs/ui/react/components/auth_shell.tsx +0 -4
  8. package/build/stubs/ui/react/page.stub +3 -0
  9. package/build/stubs/ui/react/pages/account/login.tsx +0 -3
  10. package/build/stubs/ui/react/pages/account/mfa.tsx +0 -3
  11. package/build/stubs/ui/react/pages/account/tokens.tsx +0 -3
  12. package/build/stubs/ui/react/pages/consent.tsx +0 -4
  13. package/build/stubs/ui/react/pages/forgot.tsx +0 -4
  14. package/build/stubs/ui/react/pages/login.tsx +0 -4
  15. package/build/stubs/ui/react/pages/mfa-challenge.tsx +0 -4
  16. package/build/stubs/ui/react/pages/reset.tsx +0 -4
  17. package/build/stubs/ui/react/pages/signup.tsx +0 -4
  18. package/build/stubs/ui/react/pages/verify-email.tsx +0 -4
  19. package/package.json +7 -4
  20. package/stubs/ui/react/components/auth_shell.tsx +0 -4
  21. package/stubs/ui/react/page.stub +3 -0
  22. package/stubs/ui/react/pages/account/login.tsx +0 -3
  23. package/stubs/ui/react/pages/account/mfa.tsx +0 -3
  24. package/stubs/ui/react/pages/account/tokens.tsx +0 -3
  25. package/stubs/ui/react/pages/consent.tsx +0 -4
  26. package/stubs/ui/react/pages/forgot.tsx +0 -4
  27. package/stubs/ui/react/pages/login.tsx +0 -4
  28. package/stubs/ui/react/pages/mfa-challenge.tsx +0 -4
  29. package/stubs/ui/react/pages/reset.tsx +0 -4
  30. package/stubs/ui/react/pages/signup.tsx +0 -4
  31. package/stubs/ui/react/pages/verify-email.tsx +0 -4
  32. package/build/src/host/ui-dist/assets/index-LrScaR9C.js +0 -155
@@ -8,7 +8,7 @@
8
8
  <link rel="preconnect" href="https://fonts.googleapis.com">
9
9
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
10
  <link href="https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap" rel="stylesheet">
11
- <script type="module" crossorigin src="/__AUTHKIT_BASE__/assets/index-LrScaR9C.js"></script>
11
+ <script type="module" crossorigin src="/__AUTHKIT_BASE__/assets/index-YKQ-RZLD.js"></script>
12
12
  <link rel="stylesheet" crossorigin href="/__AUTHKIT_BASE__/assets/index-DTSmD4RU.css">
13
13
  </head>
14
14
  <body>
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/components/auth_shell.tsx') });
3
- }
4
-
5
1
  import type { ReactNode } from 'react';
6
2
 
7
3
  export interface AuthBrand {
@@ -0,0 +1,3 @@
1
+ {{{
2
+ exports({ to: app.makePath(destination) })
3
+ }}}
@@ -1,6 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/account/login.tsx') });
3
- }
4
1
  interface Props {
5
2
  csrfToken: string;
6
3
  error?: string;
@@ -1,6 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/account/mfa.tsx') });
3
- }
4
1
  interface Props {
5
2
  csrfToken: string;
6
3
  enabled: boolean;
@@ -1,6 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/account/tokens.tsx') });
3
- }
4
1
  interface TokenRow {
5
2
  id: string;
6
3
  name: string;
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/consent.tsx') });
3
- }
4
-
5
1
  import AuthShell, { type AuthBrand } from '../../components/auth_shell';
6
2
 
7
3
  export default function AuthkitConsent({
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/forgot.tsx') });
3
- }
4
-
5
1
  import AuthShell from '../../components/auth_shell';
6
2
 
7
3
  const inputClass =
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/login.tsx') });
3
- }
4
-
5
1
  import AuthShell, { type AuthBrand } from '../../components/auth_shell';
6
2
 
7
3
  const inputClass =
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/mfa-challenge.tsx') });
3
- }
4
-
5
1
  import { useRef, useState } from 'react';
6
2
  import AuthShell, { type AuthBrand } from '../../components/auth_shell';
7
3
 
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/reset.tsx') });
3
- }
4
-
5
1
  import AuthShell from '../../components/auth_shell';
6
2
 
7
3
  const inputClass =
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/signup.tsx') });
3
- }
4
-
5
1
  import AuthShell, { type AuthBrand } from '../../components/auth_shell';
6
2
 
7
3
  const inputClass =
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/verify-email.tsx') });
3
- }
4
-
5
1
  import AuthShell from '../../components/auth_shell';
6
2
 
7
3
  export default function AuthkitVerifyEmail({ verified }: { verified?: boolean }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonis-agora/authkit-server",
3
- "version": "0.80.1",
3
+ "version": "0.81.0",
4
4
  "description": "AdonisJS OIDC/OAuth2 provider (Identity Provider) toolkit: ejectable auth server with sessions, rate-limiting, MFA/TOTP, audit log, federated logout and OpenTelemetry metrics.",
5
5
  "license": "MIT",
6
6
  "author": "dudousxd",
@@ -56,6 +56,9 @@
56
56
  "@adonis-agora/authkit-server/commands"
57
57
  ]
58
58
  },
59
+ "engines": {
60
+ "node": ">=24"
61
+ },
59
62
  "peerDependencies": {
60
63
  "@adonis-agora/durable": ">=0.7.0 <1.0.0",
61
64
  "@adonis-agora/media": ">=0.5.0 <1.0.0",
@@ -102,7 +105,7 @@
102
105
  }
103
106
  },
104
107
  "dependencies": {
105
- "@adonis-agora/authkit-core": "0.9.0",
108
+ "@adonis-agora/authkit-core": "0.10.0",
106
109
  "@simplewebauthn/browser": "14.0.0",
107
110
  "@simplewebauthn/server": "14.0.2",
108
111
  "jose": "6.2.12",
@@ -113,10 +116,10 @@
113
116
  "qrcode": "1.5.4"
114
117
  },
115
118
  "devDependencies": {
116
- "@adonis-agora/authkit-react": "0.24.1",
119
+ "@adonis-agora/authkit-react": "0.25.0",
117
120
  "@adonis-agora/durable": "0.40.0",
118
121
  "@adonis-agora/telescope": "0.21.1",
119
- "@adonisjs/ally": "6.3.0",
122
+ "@adonisjs/ally": "6.3.2",
120
123
  "@adonisjs/auth": "10.1.0",
121
124
  "@adonisjs/core": "7.5.0",
122
125
  "@adonisjs/drive": "4.0.0",
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/components/auth_shell.tsx') });
3
- }
4
-
5
1
  import type { ReactNode } from 'react';
6
2
 
7
3
  export interface AuthBrand {
@@ -0,0 +1,3 @@
1
+ {{{
2
+ exports({ to: app.makePath(destination) })
3
+ }}}
@@ -1,6 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/account/login.tsx') });
3
- }
4
1
  interface Props {
5
2
  csrfToken: string;
6
3
  error?: string;
@@ -1,6 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/account/mfa.tsx') });
3
- }
4
1
  interface Props {
5
2
  csrfToken: string;
6
3
  enabled: boolean;
@@ -1,6 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/account/tokens.tsx') });
3
- }
4
1
  interface TokenRow {
5
2
  id: string;
6
3
  name: string;
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/consent.tsx') });
3
- }
4
-
5
1
  import AuthShell, { type AuthBrand } from '../../components/auth_shell';
6
2
 
7
3
  export default function AuthkitConsent({
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/forgot.tsx') });
3
- }
4
-
5
1
  import AuthShell from '../../components/auth_shell';
6
2
 
7
3
  const inputClass =
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/login.tsx') });
3
- }
4
-
5
1
  import AuthShell, { type AuthBrand } from '../../components/auth_shell';
6
2
 
7
3
  const inputClass =
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/mfa-challenge.tsx') });
3
- }
4
-
5
1
  import { useRef, useState } from 'react';
6
2
  import AuthShell, { type AuthBrand } from '../../components/auth_shell';
7
3
 
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/reset.tsx') });
3
- }
4
-
5
1
  import AuthShell from '../../components/auth_shell';
6
2
 
7
3
  const inputClass =
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/signup.tsx') });
3
- }
4
-
5
1
  import AuthShell, { type AuthBrand } from '../../components/auth_shell';
6
2
 
7
3
  const inputClass =
@@ -1,7 +1,3 @@
1
- {
2
- exports({ to: app.makePath('inertia/pages/authkit/verify-email.tsx') });
3
- }
4
-
5
1
  import AuthShell from '../../components/auth_shell';
6
2
 
7
3
  export default function AuthkitVerifyEmail({ verified }: { verified?: boolean }) {