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"`.
This commit is contained in:
Connor Goldberg
2025-07-14 14:14:20 -07:00
committed by GitHub
parent ecc42f988f
commit 4058169079
3 changed files with 4 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ export const socialProvidersPlugin = () => ({
method: "GET",
},
async (ctx) =>
ctx.json(ctx.context.socialProviders.map((p) => p.name.toLowerCase())),
ctx.json(ctx.context.socialProviders.map((p) => p.id.toLowerCase())),
),
},
});