diff --git a/docs/content/docs/guides/workos-migration-guide.mdx b/docs/content/docs/guides/workos-migration-guide.mdx index 28cb7f23b7..882812281f 100644 --- a/docs/content/docs/guides/workos-migration-guide.mdx +++ b/docs/content/docs/guides/workos-migration-guide.mdx @@ -115,7 +115,7 @@ export const auth = betterAuth({ account: { // [!code highlight] accountLinking: { // [!code highlight] enabled: true, // [!code highlight] - trustedProviders: ["email-password", "github"], // [!code highlight] + trustedProviders: ["credential", "github"], // [!code highlight] }, // [!code highlight] }, // [!code highlight] }); diff --git a/docs/content/docs/reference/options.mdx b/docs/content/docs/reference/options.mdx index 27c782950b..6a391a9195 100644 --- a/docs/content/docs/reference/options.mdx +++ b/docs/content/docs/reference/options.mdx @@ -408,7 +408,7 @@ export const auth = betterAuth({ storeAccountCookie: true, // Store account data after OAuth flow in a cookie (useful for database-less flows) accountLinking: { enabled: true, - trustedProviders: ["google", "github", "email-password"], + trustedProviders: ["google", "github", "credential"], allowDifferentEmails: false } }, diff --git a/packages/core/src/types/init-options.ts b/packages/core/src/types/init-options.ts index 7b580f3a7b..6155ef3152 100644 --- a/packages/core/src/types/init-options.ts +++ b/packages/core/src/types/init-options.ts @@ -927,7 +927,7 @@ export type BetterAuthOptions = { */ trustedProviders?: Array< LiteralUnion< - SocialProviderList[number] | "email-password" | "sso", + SocialProviderList[number] | "credential" | "sso" | "siwe", string > >;