await auth.api.banUser({
body: {
userId,
banReason: reason,
banExpiresIn: duration ? duration * 24 * 60 * 60 : undefined, // Convert days to seconds
},
headers: await headers(),
});
await auth.api.banUser({
body: {
userId,
banReason: reason,
banExpiresIn: duration ? duration * 24 * 60 * 60 : undefined, // Convert days to seconds
},
headers: await headers(),
});