mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
consent_required
This commit is contained in:
parent
02b9378018
commit
e2aa5a4027
@ -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') {
|
||||
|
||||
@ -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>
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user