---
title: Sign-in problems
description: A code that won't work, a computer that says it's not signed in, and a sign-in the server stopped accepting.
sidebar:
  order: 2
---

Nothing counts until a computer is signed in, and a computer whose sign-in the server has stopped accepting can't upload either. This page covers both.

## "Not signed in" shows under your name

The sidebar says **Not signed in**, and Hindsight opens on setup every time it starts until you fix it. Sign in from the setup screen, or from Settings > Profile with **Sign in with Hack Club**. [Sign in](/docs/getting-started/sign-in) walks through it.

The button is greyed out while the tracker isn't running. If it is, start with [the tracker isn't running](/docs/troubleshooting/tracker-not-running).

## The code doesn't work

Each message below is one the app or the sign-in page shows, with what it means.

| Message | What happened |
| --- | --- |
| `the code expired before it was approved; sign in again` | Nobody approved the code within 15 minutes. |
| `the code expired; sign in again` | The server says the code is out of date. |
| `sign-in was denied` | **Deny** was clicked on the approval page. |
| `That code is invalid or has expired.` | The approval page doesn't know the code. It's too old, it was already used, or it came from an earlier attempt. |
| `contacting <server>` or `server refused the device-code request` | The app couldn't get a code. Check your internet connection and try again. |

The fix for all of them is to sign in again. Every attempt makes a new code, and the app only follows the newest one, so use the code it's showing now, not one from an earlier tab.

Typing a code by hand? The characters are letters without vowels, plus the digits 2 to 9, so there's no `0`, `1`, `O`, `I` or `A` to mix up. Spaces and the dash don't matter.

On a machine where the browser can't open, sign in from a terminal with `--no-browser`. See [sign in from a terminal](/docs/getting-started/sign-in#sign-in-from-a-terminal).

## The server stopped accepting this computer

You're signed in, the sidebar looks normal, and yet nothing reaches the dashboard. Click **Sync now** in Settings > Setup and you'll see:

```text
the server no longer accepts this computer's sign in; sign out and in again
```

In `daemon.log` the same thing reads:

```text
sync failed (will retry): server rejected chain head request: HTTP 401 Unauthorized invalid or revoked API key
```

Each computer has its own key. The key stops working when somebody ends it: for example, from another computer under Settings > Setup > Your computers > **Sign out**. The tracker doesn't find out until its next upload, which is why the app still looks signed in.

To fix it, go to Settings > Profile, click **Sign out**, confirm, and then **Sign in with Hack Club** again. Signing out here can't undo anything: your history stays on this computer, and what hadn't uploaded goes up after the next sign in.

:::note
A sign-out that can't reach the server still finishes on your side. The app forgets the key either way. The server never hears about it.
:::

## Check the computer list

If you're not sure which computers are signed in, open Settings > Setup. **Your computers** shows each one with "Active now" or when it was last seen. When you sign a computer out, it's removed from the list and has to sign in again.
