File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,14 @@ export class InsufficientScopeError extends OAuthError {
163163 static errorCode = 'insufficient_scope' ;
164164}
165165
166+ /**
167+ * Invalid target error - The requested resource is invalid, missing, unknown, or malformed.
168+ * (Custom error for resource indicators - RFC 8707)
169+ */
170+ export class InvalidTargetError extends OAuthError {
171+ static errorCode = 'invalid_target' ;
172+ }
173+
166174/**
167175 * A utility class for defining one-off error codes
168176 */
@@ -199,5 +207,6 @@ export const OAUTH_ERRORS = {
199207 [ MethodNotAllowedError . errorCode ] : MethodNotAllowedError ,
200208 [ TooManyRequestsError . errorCode ] : TooManyRequestsError ,
201209 [ InvalidClientMetadataError . errorCode ] : InvalidClientMetadataError ,
202- [ InsufficientScopeError . errorCode ] : InsufficientScopeError
210+ [ InsufficientScopeError . errorCode ] : InsufficientScopeError ,
211+ [ InvalidTargetError . errorCode ] : InvalidTargetError
203212} as const ;
You can’t perform that action at this time.
0 commit comments