Anyone succesfully used Auth0 with Nextjs14 on Pages? ("module not found 'crypto')
Original message was deleted

npx create-next-app, but encounter issues after setting up Auth0 when trying to preview.npx create-next-app✘ [ERROR] i [LoginHandlerError]: Login handler failed. CAUSE: "secret" is required
[wrangler:inf] GET /api/auth/login 500 Internal Server Error (6ms)// app/api/auth/[auth0]/route.js
import { handleAuth } from '@auth0/nextjs-auth0/edge';
export const runtime = 'edge';
export const GET = handleAuth();name = "my-app"
compatibility_date = "2024-12-23"
compatibility_flags = ["nodejs_compat_v2"]
pages_build_output_dir=".vercel/output/static" "scripts": {
...
"pages:build": "npx @cloudflare/next-on-pages",
"preview": "npm run pages:build && wrangler pages dev",
"deploy": "npm run pages:build && wrangler pages deploy"
},
"dependencies": {
...
"@auth0/nextjs-auth0": "^3.5.0",
...
},