Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

im a fucking idiot

Steven Teyf87f3675715e
diff --git a/apps/web/app/api/auth/saml/token/route.ts b/apps/web/app/api/auth/saml/token/route.ts
index 0c59f07743..9c2338e200 100644
--- a/apps/web/app/api/auth/saml/token/route.ts
+++ b/apps/web/app/api/auth/saml/token/route.ts
@@ -4,9 +4,10 @@ import { NextResponse } from "next/server";
export async function POST(req: Request) {
const { oauthController } = await jackson();
- const body = await req.json();
+ const formData = await req.formData();
+ const body = Object.fromEntries(formData.entries());
- const response = await oauthController.token(body);
+ const token = await oauthController.token(body as any);
- return NextResponse.json(response);
+ return NextResponse.json(token);
}
diff --git a/apps/web/app/api/auth/saml/userinfo/index.ts b/apps/web/app/api/auth/saml/userinfo/route.ts
similarity index 100%
rename from apps/web/app/api/auth/saml/userinfo/index.ts
rename to apps/web/app/api/auth/saml/userinfo/route.ts