From 8b7b512a58b9d52cb4ca8f0be35ad19c5232ad61 Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Sat, 12 Oct 2024 12:19:00 +0300 Subject: [PATCH] docs: fix ban user usage --- docs/content/docs/plugins/admin.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/content/docs/plugins/admin.mdx b/docs/content/docs/plugins/admin.mdx index d6307cc5..7e1d4227 100644 --- a/docs/content/docs/plugins/admin.mdx +++ b/docs/content/docs/plugins/admin.mdx @@ -126,7 +126,9 @@ Bans a user, preventing them from signing in and revokes all of their existing s ```ts title="admin.ts" const bannedUser = await authClient.admin.banUser({ - userId: "user_id_here" + userId: "user_id_here", + banReason: "Spamming", // Optional + banExpiresIn: 60 * 60 * 24 * 7 // Optional }); ```