stack/packages
Zai Shi c28e4a636f
Handle OAuth consent_required error (#685)
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->

<!-- ELLIPSIS_HIDDEN -->

----

> [!IMPORTANT]
> Handle `consent_required` error in OAuth flow and update error message
in `ErrorPage`.
> 
>   - **Behavior**:
> - Handle `consent_required` error in `OAuthBaseProvider` in `base.tsx`
by throwing `KnownErrors.OAuthProviderAccessDenied()`.
> - Update error message in `ErrorPage` in `error-page.tsx` to reflect
both cancellation and denial scenarios.
>   - **Misc**:
> - Minor text change in `ErrorPage` to improve clarity of the error
message.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for e2aa5a4027. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
2025-05-15 23:09:27 +02:00
..
init-stack chore: update package versions 2025-05-13 16:00:40 -07:00
js chore: update package versions 2025-05-13 16:00:40 -07:00
react chore: update package versions 2025-05-13 16:00:40 -07:00
stack chore: update package versions 2025-05-13 16:00:40 -07:00
stack-emails chore: update package versions 2025-05-13 16:00:40 -07:00
stack-sc chore: update package versions 2025-05-13 16:00:40 -07:00
stack-shared Add comment explaining defaults 2025-05-15 14:04:51 -07:00
stack-ui chore: update package versions 2025-05-13 16:00:40 -07:00
template Handle OAuth consent_required error (#685) 2025-05-15 23:09:27 +02:00