From 40581690794fc461930962cacdfb7ee061eac5ac Mon Sep 17 00:00:00 2001 From: Connor Goldberg Date: Mon, 14 Jul 2025 14:14:20 -0700 Subject: [PATCH] fix: auth /social-providers endpoint ids (#115) The `/social-providers` endpoint should return a list of the provider ids, not their names. This was found when trying to use the microsoft endpoint and the endpoint was returning `"microsoft entraid"`, when the `AuthForm` expects it to just be `"microsoft"`. --- .vscode/launch.json | 4 ++-- apps/web/src/components/AuthForm.tsx | 1 + packages/auth/src/auth.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 67d5d1bf..efbe14b3 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,7 +6,7 @@ "type": "node-terminal", "request": "launch", "command": "pnpm dev", - "cwd": "${workspaceFolder}/apps/nextjs", + "cwd": "${workspaceFolder}/apps/web", "skipFiles": ["/**"], "sourceMaps": true, "sourceMapPathOverrides": { @@ -14,4 +14,4 @@ } } ] -} \ No newline at end of file +} diff --git a/apps/web/src/components/AuthForm.tsx b/apps/web/src/components/AuthForm.tsx index 91aee86f..6207d0d0 100644 --- a/apps/web/src/components/AuthForm.tsx +++ b/apps/web/src/components/AuthForm.tsx @@ -259,6 +259,7 @@ export function Auth({ setIsMagicLinkSent, isSignUp }: AuthProps) { } return (