Skip to content

CallbackClient's error hint always blames "the mergefi-backend is running" regardless of the actual sign-in failure reason #267

Closed

Description

@chonilius

src/app/auth/callback/CallbackClient.tsx shows a fixed diagnostic hint for every
sign-in failure:

{error ? (
  <>
    <p className="font-medium text-rose-600">{error}</p>
    <p className="mt-2 text-sm text-slate-500 dark:text-slate-400">
      Make sure the mergefi-backend is running and reachable.
    </p>
  </>
) : ...}

This sub-text is shown for both failure branches in this component: the "No token was
returned by GitHub sign-in" case (a GitHub OAuth issue — nothing to do with whether the
backend is reachable) and the generic login(token).catch() case (which could be an
expired/invalid token, a 401/403 from /auth/me, a validation error, or a genuine
connectivity failure — login()'s underlying apiRequest calls don't distinguish these
for the caller).

For the "no token" case specifically, telling the user to check whether the backend is
running is actively unhelpful troubleshooting advice — the backend was clearly reachable
enough to redirect the user back to this page in the first place; the problem is that no
?token= param arrived, which points at the GitHub OAuth app configuration or redirect
URL, not backend availability.

Suggested fix: only show the "make sure the backend is running" hint for the generic
login() failure path, and give the "no token" case its own, more relevant hint (e.g.
suggesting the user retry from /connect since the OAuth handshake itself didn't
complete as expected).

Activity

  1. added
    bug
    very hard
    help wanted
    enhancement
    on Aug 21, 2026
  2. added
    Stellar Wave
    on Aug 25, 2026
  3. onyemaechiezekiel9 commented on Aug 25, 2026

    @onyemaechiezekiel9

    @onyemaechiezekiel9 has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hello, I have gone through the issue and I would love to work on this swiftly

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @onyemaechiezekiel9 to this issue.

  4. SeveentWonder commented on Aug 25, 2026

    @SeveentWonder

    @SeveentWonder has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hi there, I’ve carefully reviewed the issue details and I’m confident I can provide a clean, efficient, and maintainable solution.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @SeveentWonder to this issue.

  5. boys-cyberhub commented on Aug 25, 2026

    @boys-cyberhub
    Contributor

    @boys-cyberhub has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    hello can i work on this issue please

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @boys-cyberhub to this issue.

  6. drips-wave commented on Aug 25, 2026

    @drips-wave

    Congratulations, @boys-cyberhub! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.

    🧑‍💻 @boys-cyberhub: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  7. drips-wave commented on Aug 25, 2026

    @drips-wave

    This issue has been completed by @boys-cyberhub as part of the Stellar Wave Program's 8th Wave 🥳

    😎 @boys-cyberhub: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

  8. removed
    Stellar Wave
    on Oct 15, 2026
  9. added
    Stellar Wave
    on Oct 15, 2026
  10. removed
    Stellar Wave
    on Oct 15, 2026
  11. added
    Stellar Wave
    on Oct 15, 2026
  12. removed
    Stellar Wave
    on Oct 15, 2026
  13. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar Wavebugenhancementhelp wantedvery hard

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions