From a81f0dcb925ad754733afdccafed2e8280362414 Mon Sep 17 00:00:00 2001 From: Felix <23635466+its-felix@users.noreply.github.com> Date: Sat, 27 Jul 2024 01:53:49 +0200 Subject: [PATCH] feat: update descriptions for invalid api tokens --- src/pages/oauth2-consent.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/oauth2-consent.tsx b/src/pages/oauth2-consent.tsx index e2bbd9b..bfc84ce 100644 --- a/src/pages/oauth2-consent.tsx +++ b/src/pages/oauth2-consent.tsx @@ -236,7 +236,7 @@ function buildOptions(consentInfo: OAuth2ConsentInfo) { }; if (!gw2ApiToken.isValid) { - option.description = 'Invalid: Please update the API Token of this account'; + option.description = 'Invalid: Please update the API Token for this account'; invalidOptions.push(option); } else if (requestedVerifiedScope && !gw2ApiToken.isVerified) { option.description = 'Unverified: This account may be rejected by the application'; @@ -254,7 +254,7 @@ function buildOptions(consentInfo: OAuth2ConsentInfo) { insufficientOptions.push({ value: gw2ApiToken.gw2AccountId, label: gw2ApiToken.displayName, - description: 'The API Token for this account appears to be invalid', + description: 'The API Token for this account does not have the permissions requested by the application', filteringTags: [gw2ApiToken.gw2AccountId, gw2ApiToken.displayName], disabled: true, });