minikit-limpo-template
Version:
A minimal Next.js app starter template with WorldCoin MiniKit authentication integration
11 lines (8 loc) • 298 B
text/typescript
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 });
}