consent_required

This commit is contained in:
Zai Shi 2025-05-15 13:12:14 -07:00
parent 02b9378018
commit e2aa5a4027
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ export abstract class OAuthBaseProvider {
captureError("inner-oauth-callback", { error, params });
throw new StatusError(400, "Inner OAuth callback failed due to invalid grant. Please try again.");
}
if (error?.error === 'access_denied') {
if (error?.error === 'access_denied' || error?.error === 'consent_required') {
throw new KnownErrors.OAuthProviderAccessDenied();
}
if (error?.error === 'invalid_client') {

View File

@ -73,7 +73,7 @@ export function ErrorPage(props: { fullPage?: boolean, searchParams: Record<stri
secondaryAction={() => stackApp.redirectToHome()}
>
<Typography>
{t("The sign-in operation has been cancelled. Please try again. [access_denied]")}
{t("The sign-in operation has been cancelled or denied. Please try again.")}
</Typography>
</MessageCard>
);