@adonis-agora/authkit-server 0.61.0 → 0.61.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.
|
@@ -838,7 +838,7 @@ export interface AuthServerConfigInput {
|
|
|
838
838
|
* do resolver também vira 401. O id deve ser o mesmo `sub`/`AuthAccount.id`
|
|
839
839
|
* usado pelo account store (no entre-textos, `auth.user.id === app.user.id`).
|
|
840
840
|
*/
|
|
841
|
-
resolveAccountId: (ctx: import('@adonisjs/core/http').HttpContext) => string | null
|
|
841
|
+
resolveAccountId: (ctx: import('@adonisjs/core/http').HttpContext) => string | null | Promise<string | null>;
|
|
842
842
|
};
|
|
843
843
|
/** Segredo para autenticar requests de introspecção de PAT. */
|
|
844
844
|
patIntrospectionSecret?: string;
|
|
@@ -1096,7 +1096,7 @@ export interface ResolvedServerConfig {
|
|
|
1096
1096
|
/** API headless resolvida (Clerk-style). Presente só quando o host a declarou. */
|
|
1097
1097
|
headless?: {
|
|
1098
1098
|
baseUrl: string;
|
|
1099
|
-
resolveAccountId: (ctx: import('@adonisjs/core/http').HttpContext) => string | null
|
|
1099
|
+
resolveAccountId: (ctx: import('@adonisjs/core/http').HttpContext) => string | null | Promise<string | null>;
|
|
1100
1100
|
};
|
|
1101
1101
|
rateLimit: ResolvedRateLimitConfig;
|
|
1102
1102
|
/** Bloqueio progressivo de conta resolvido (sempre presente; default ligado). */
|
|
@@ -41,7 +41,7 @@ export interface AuthHostRuntimeConfig {
|
|
|
41
41
|
*/
|
|
42
42
|
headless?: {
|
|
43
43
|
baseUrl: string;
|
|
44
|
-
resolveAccountId: (ctx: HttpContext) => string | null
|
|
44
|
+
resolveAccountId: (ctx: HttpContext) => string | null | Promise<string | null>;
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
/** Stash dos bits de routing (chamado no boot do provider). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonis-agora/authkit-server",
|
|
3
|
-
"version": "0.61.
|
|
3
|
+
"version": "0.61.1",
|
|
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",
|