mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 23:53:17 -05:00
fix(mcp): keep McpOptions assignable to OAuthOptions under exactOptionalPropertyTypes (#11635)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@better-auth/mcp": patch
|
||||
---
|
||||
|
||||
Projects that enable `exactOptionalPropertyTypes` with `skipLibCheck: false` no longer get a TS2430 error from the `@better-auth/mcp` type declarations.
|
||||
@@ -41,9 +41,9 @@ export interface McpOptions extends OAuthOptions<Scope[]> {
|
||||
*
|
||||
* @default 30
|
||||
*/
|
||||
refreshTokenReuseInterval?: OAuthOptions<
|
||||
Scope[]
|
||||
>["refreshTokenReuseInterval"];
|
||||
refreshTokenReuseInterval?: NonNullable<
|
||||
OAuthOptions<Scope[]>["refreshTokenReuseInterval"]
|
||||
>;
|
||||
/**
|
||||
* The canonical protected resource identifier (RFC 8707 / RFC 9728) for this
|
||||
* MCP server. Issued tokens are audience-bound to it, and it is published as
|
||||
|
||||
Reference in New Issue
Block a user