simplify diff
This commit is contained in:
parent
6656d23d84
commit
02ce81b90c
3 changed files with 20 additions and 105 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ export type AuthorizationParams = {
|
|||
scopes?: string[];
|
||||
codeChallenge: string;
|
||||
redirectUri: string;
|
||||
resource?: string;
|
||||
resource?: URL;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue