rename decline to reject
This commit is contained in:
parent
90569d885f
commit
e7a5e331f1
1 changed files with 15 additions and 15 deletions
|
|
@ -205,12 +205,12 @@ const getServer = () => {
|
|||
},
|
||||
],
|
||||
};
|
||||
} else if (result.action === 'decline') {
|
||||
} else if (result.action === 'reject') {
|
||||
return {
|
||||
content: [
|
||||
{
|
||||
type: 'text',
|
||||
text: `No information was collected. User declined to provide ${infoType} information.`,
|
||||
text: `No information was collected. User rejectd to provide ${infoType} information.`,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
@ -458,7 +458,7 @@ if (useOAuth) {
|
|||
}
|
||||
|
||||
const data = await response.json();
|
||||
|
||||
|
||||
if (strictOAuth) {
|
||||
if (!data.aud) {
|
||||
throw new Error(`Resource Indicator (RFC8707) missing`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue