export async function setAdmin(id: string) {
const updatedUser = await authClient.admin.setRole(
{
userId: id,
role: "admin",
},
{ headers: headers() }
)
console.log("User is now an admin", updatedUser, id)
}
export async function setAdmin(id: string) {
const updatedUser = await authClient.admin.setRole(
{
userId: id,
role: "admin",
},
{ headers: headers() }
)
console.log("User is now an admin", updatedUser, id)
}