docs: fix ban user usage

This commit is contained in:
Bereket Engida
2024-10-12 12:19:00 +03:00
parent c0cede396a
commit 8b7b512a58

View File

@@ -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
});
```