fix(oauth): fix OAuth callback error page closing before error is visible#5277
fix(oauth): fix OAuth callback error page closing before error is visible#5277hassan254-prog wants to merge 1 commit intomasterfrom
Conversation
🤖 My Senior Dev — Analysis Complete👤 For @hassan254-prog📁 Expert in View your contributor analytics → 📊 2 files reviewed • 3 need attention
🚀 Open Interactive Review →The full interface unlocks features not available in GitHub:
💬 Chat here: 📖 View all 12 personas & slash commandsYou can interact with me by mentioning In PR comments or on any line of code:
Slash commands:
AI Personas (mention to get their perspective):
For the best experience, view this PR on myseniordev.com — includes AI chat, file annotations, and interactive reviews. |
ec86b7c to
26d1ff9
Compare
TBonnin
left a comment
There was a problem hiding this comment.
not sure I follow what the problem is. Can you add more details to the PR description? Thank you
TBonnin
left a comment
There was a problem hiding this comment.
are we sure we want to expose the underlying error to the end user? I understand it is useful for debugging but I am not sure it should be surfaced in the popup instead of adding the error info to the Nango logs for the customer to access? @bastienbeurier
@bastienbeurier, wdyt? |
@hassan254-prog I don't understand from the video how the error surfaces! |
@bastienbeurier, sorry, I've updated the pr description, this was left in Slack before. |
Thanks, I think the design is too scrappy to ship this like this. I'll get back shortly with a more polished design. |
Describe the problem and your solution
Screen.Recording.2026-01-21.at.13.14.56.mov
This is the flow that displays the error after the changes.
Screen.Recording.2026-01-29.at.11.51.21.mov
It also ensures both the error message and serialized query parameters are HTML-escaped before rendering so the callback page shows them safely without introducing injection risks.
Affected Areas
•
packages/server/lib/utils/html.ts•
packages/server/lib/controllers/oauth.controller.tsThis summary was automatically generated by @propel-code-bot