diff --git a/docs/content/docs/plugins/admin.mdx b/docs/content/docs/plugins/admin.mdx index e9a9e339e7..262c7bbe80 100644 --- a/docs/content/docs/plugins/admin.mdx +++ b/docs/content/docs/plugins/admin.mdx @@ -570,3 +570,14 @@ admin({ defaultBanExpiresIn: 60 * 60 * 24, // 1 day }); ``` + +### bannedUserMessage + +The message to show when a banned user tries to sign in. Defaults to "You have been banned from this application. Please contact support if you believe this is an error." + +```ts title="auth.ts" +admin({ + bannedUserMessage: "Custom banned user message", +}); +``` + diff --git a/packages/better-auth/src/client/solid/index.ts b/packages/better-auth/src/client/solid/index.ts index d8f83b4a03..0ebfc9e6f9 100644 --- a/packages/better-auth/src/client/solid/index.ts +++ b/packages/better-auth/src/client/solid/index.ts @@ -93,3 +93,5 @@ export function createAuthClient