/**
 * This file is kept for backward compatibility and type exports.
 * The actual auth instance is created server-side in server/utils/auth.ts
 * Use the authClient from auth-client.ts or the useAuth() composable instead.
 */

// Re-export types from server auth for type inference
export type { auth } from '../../server/utils/auth'

/**
 * Check if a user has super admin privileges
 */
export function isSuperAdmin(user: unknown): boolean {
  if (user && typeof user === 'object' && 'superAdmin' in user) {
    const value = (user as { superAdmin?: boolean }).superAdmin
    return Boolean(value)
  }
  return false
}
