feat: use decline instead of reject

This commit is contained in:
Alex Andru 2025-07-04 12:09:51 +02:00
commit e6c8b946aa

View file

@ -132,7 +132,7 @@ const App = () => {
Array<
PendingElicitationRequest & {
resolve: (response: ElicitationResponse) => void;
reject: (error: Error) => void;
decline: (error: Error) => void;
}
>
>([]);
@ -223,7 +223,7 @@ const App = () => {
requestedSchema: request.params.requestedSchema,
},
resolve,
reject: (error: Error) => {
decline: (error: Error) => {
console.error("Elicitation request rejected:", error);
},
},