Skip to content

🐛 Bug Report: authError is always undefined in Tracker page #634

@nrynmish

Description

@nrynmish

📜 Description

On the Tracker page (/track), the code tries to display an error message for authentication failures:

tsx
{(authError || dataError) && (
<Alert severity="error" sx={{ mb: 3 }}>
{authError || dataError}

)}
However, useGitHubAuth does not return an error property. It only returns:

ts
{ username, setUsername, token, setToken, getOctokit }
Therefore authError is always undefined, and the alert will never show any auth‑related error – even when the user enters an invalid token or the GitHub API rejects the request.

All real errors are being passed through dataError from useGitHubData, which is not correct because dataError is intended for data‑fetching problems, not authentication failures.

What browsers are you seeing the problem on?

No response

📃 Relevant Screenshots (Links)

No response

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions