From 1b0f25cd7f3a52683b02a2970bb48c72b304ad50 Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Mon, 3 Mar 2025 19:08:11 -0800 Subject: [PATCH] Improve inner OAuth cookie error description --- .../app/api/latest/auth/oauth/callback/[provider_id]/route.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/app/api/latest/auth/oauth/callback/[provider_id]/route.tsx b/apps/backend/src/app/api/latest/auth/oauth/callback/[provider_id]/route.tsx index d9c65c32f..48160234d 100644 --- a/apps/backend/src/app/api/latest/auth/oauth/callback/[provider_id]/route.tsx +++ b/apps/backend/src/app/api/latest/auth/oauth/callback/[provider_id]/route.tsx @@ -50,7 +50,7 @@ const handler = createSmartRouteHandler({ (await cookies()).delete("stack-oauth-inner-" + innerState); if (cookieInfo?.value !== 'true') { - throw new StatusError(StatusError.BadRequest, "OAuth cookie not found. This is likely because you refreshed the page during the OAuth sign in process. Please try signing in again"); + throw new StatusError(StatusError.BadRequest, "Inner OAuth cookie not found. This is likely because you refreshed the page during the OAuth sign in process. Please try signing in again"); } const outerInfoDB = await prismaClient.oAuthOuterInfo.findUnique({