simplify diff

This commit is contained in:
Olivier Chafik 2025-06-16 23:10:27 +01:00
commit 02ce81b90c
No known key found for this signature in database
3 changed files with 20 additions and 105 deletions

View file

@ -189,13 +189,3 @@ export class InsufficientScopeError extends OAuthError {
super("insufficient_scope", message, errorUri);
}
}
/**
* Invalid target error - The requested resource is invalid, unknown, or malformed.
* (RFC 8707 - Resource Indicators for OAuth 2.0)
*/
export class InvalidTargetError extends OAuthError {
constructor(message: string, errorUri?: string) {
super("invalid_target", message, errorUri);
}
}

View file

@ -8,7 +8,7 @@ export type AuthorizationParams = {
scopes?: string[];
codeChallenge: string;
redirectUri: string;
resource?: string;
resource?: URL;
};
/**

View file

@ -26,7 +26,7 @@ export interface AuthInfo {
* The RFC 8707 resource server identifier for which this token is valid.
* If set, this MUST match the MCP server's resource identifier (minus hash fragment).
*/
resource?: string;
resource?: URL;
/**
* Additional data associated with the token.