Spaces:
Running
Running
| <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> |