stack/apps/backend/src
Zai Shi dfae043457
Fix redirect uri error message (#682)
<!--

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

-->

<!-- ELLIPSIS_HIDDEN -->


----

> [!IMPORTANT]
> Update error message for invalid redirect URIs in OAuth callback
handler and adjust tests accordingly.
> 
>   - **Behavior**:
> - In `route.tsx`, change error handling for invalid redirect URIs to
throw `StatusError` with message: "Invalid redirect URI. You might have
set the wrong redirect URI in the OAuth provider settings. (Please copy
the redirect URI from the Stack Auth dashboard and paste it into the
OAuth provider's dashboard)".
>   - **Tests**:
> - Update `callback.test.ts` to expect new error message for untrusted
redirect URL case.
> 
> <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 00c68bc708. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>


<!-- ELLIPSIS_HIDDEN -->

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-07-02 01:12:10 +00:00
..
app Fix redirect uri error message (#682) 2025-07-02 01:12:10 +00:00
lib Only use Emailable for shared configs 2025-06-26 11:51:19 -04:00
oauth Handle OAuth consent_required error (#685) 2025-05-15 23:09:27 +02:00
route-handlers Fetch tenancy in non-GET /users/me 2025-05-15 12:27:33 -07:00
utils add opentelemetry log function and telemetry for primary_email_auth_enabled usage (#523) 2025-03-10 08:46:36 -07:00
analytics.tsx Fix event capture 2024-08-14 12:49:35 -07:00
globals.d.ts Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
instrumentation.ts Attempt CI fix 2025-03-12 16:50:55 -07:00
middleware.tsx Fix Apple OAuth (#669) 2025-05-13 18:38:09 +02:00
polyfills.tsx Fix unhandled promise rejections in rawQuery 2025-04-11 09:59:45 -07:00
prisma-client.tsx Config DB migration step 2 (#629) 2025-04-29 14:52:45 -07:00
smart-router.tsx Move /api/v1 to /api/latest 2025-02-05 17:24:43 -08:00