import { NextResponse } from 'next/server';
// Node.js built-in crypto module
import * as crypto from 'crypto';

export async function GET() {
  // Generate a random nonce for wallet authentication
  const nonce = crypto.randomBytes(32).toString('hex');
  
  return NextResponse.json({ nonce });
}
