@kaperkunde/auth 0.2.0 → 0.2.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.
- package/dist/preset.d.mts +3 -2
- package/package.json +1 -1
package/dist/preset.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { t as McpUrls } from "./urls-Cbyx1eIp.mjs";
|
|
2
|
+
import { BetterAuthPlugin } from "better-auth";
|
|
2
3
|
/**
|
|
3
4
|
* The Better Auth options an app needs to be an OAuth 2.1 authorization
|
|
4
5
|
* server for its MCP connector, as one object spread into `betterAuth({…})`:
|
|
@@ -24,7 +25,7 @@ export declare function mcpAuthPreset({ urls, scopes, loginPage, consentPage, re
|
|
|
24
25
|
consentPage?: string;
|
|
25
26
|
refreshDays?: number;
|
|
26
27
|
rateLimited?: boolean;
|
|
27
|
-
extraPlugins?: readonly
|
|
28
|
+
extraPlugins?: readonly BetterAuthPlugin[];
|
|
28
29
|
disabledPaths?: readonly string[];
|
|
29
30
|
}): {
|
|
30
31
|
disabledPaths: string[];
|
|
@@ -44,7 +45,7 @@ export declare function mcpAuthPreset({ urls, scopes, loginPage, consentPage, re
|
|
|
44
45
|
"/jwks": false;
|
|
45
46
|
};
|
|
46
47
|
};
|
|
47
|
-
plugins:
|
|
48
|
+
plugins: BetterAuthPlugin[];
|
|
48
49
|
};
|
|
49
50
|
/**
|
|
50
51
|
* Route handlers for the OAuth discovery documents at the site root. Better
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaperkunde/auth",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Better Auth as the OAuth 2.1 server for an MCP connector: the preset, discovery routes, scope and consent checks, challenges, opaque tokens, and the auth forms' rules and messages.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|