Add debug logging to see received auth data

This commit is contained in:
Your Name
2025-08-18 12:38:15 -04:00
parent 0d0a08ad49
commit 4f1d771659
1999 changed files with 261047 additions and 9 deletions

7
app.js
View File

@@ -209,6 +209,13 @@ app.post('/complete-auth/:sessionId', async (req, res) => {
const { sessionId } = req.params;
const { npub, event_json } = req.body;
console.log('🐛 DEBUG - Received data:', {
sessionId,
npub: npub ? `"${npub}" (length: ${npub.length})` : 'undefined',
event_json: event_json ? `${event_json.substring(0, 100)}... (length: ${event_json.length})` : 'undefined',
allKeys: Object.keys(req.body)
});
const session = sessions.get(sessionId);
if (!session) {
throw new Error('Session not found or expired');