Add console logs for debugging consent page (#1129)

This commit is contained in:
Mahesh Sanikommu 2026-06-16 14:46:07 -07:00 committed by GitHub
parent 949413d98e
commit 3f5af42565
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -167,6 +167,11 @@ function OAuthConsentContent() {
targetUrl.pathname === "/oauth/consent") &&
targetUrl.searchParams.has("sig") &&
targetUrl.searchParams.has("exp")
console.log("isSignedInteractionRedirect", isSignedInteractionRedirect)
console.log("targetUrl", targetUrl)
console.log("accept", accept)
console.log("window.location.origin", window.location.origin)
console.log("pathname", targetUrl.pathname)
if (accept && isSignedInteractionRedirect) {
throw new Error(
"Authorization could not finish because your session changed. Start the connection again from your app.",