Nano_Banana_Editor / debug-oauth.html
Reubencf's picture
Add HF + fal.ai integration (commented out for manual review)
53aaa70
raw
history blame
1.13 kB
<!DOCTYPE html>
<html>
<head>
<title>OAuth Debug</title>
</head>
<body>
<h1>OAuth Debug Information</h1>
<div id="debug-info">
<p><strong>Current Origin:</strong> <span id="origin"></span></p>
<p><strong>Redirect URI:</strong> <span id="redirect-uri"></span></p>
<p><strong>Expected HF Redirect URI:</strong> <code id="expected">http://localhost:3000/api/auth/callback</code></p>
</div>
<script>
document.getElementById('origin').textContent = window.location.origin;
document.getElementById('redirect-uri').textContent = window.location.origin + '/api/auth/callback';
// Check if they match
const expected = 'http://localhost:3000/api/auth/callback';
const actual = window.location.origin + '/api/auth/callback';
if (expected === actual) {
document.getElementById('expected').style.color = 'green';
} else {
document.getElementById('expected').style.color = 'red';
document.getElementById('expected').textContent += ' (MISMATCH!)';
}
</script>
</body>
</html>