Skip to content

Refresh a Human Session

Keep a human API session alive by exchanging the refresh token for a fresh token pair.

Best for CLI user and API client Updated April 3, 2026
CLI In this interface
4 steps Steps
2 interfaces Available in
Use this path when

Use the built-in CLI refresh command when the current profile already holds a human session.

What you'll finish here
  • Refresh before expiry.
  • Replace stored tokens cleanly.
  • Know which auth session types can use refresh.

Where this happens

LabelValueNotes
Command./backlog.sh auth refreshRefreshes the stored human API session.

Same Task, Other Interfaces

Use the version that matches where you are working now. The subject matter stays the same; the delivery changes by surface.

Keep this boundary clear

  • Refresh is for human API sessions only. PATs and automation secrets do not use this flow.

Do the work

  1. 1. Make sure the current profile is using a human session rather than a PAT or automation token.
  2. 2. Run `./backlog.sh auth refresh`.
  3. 3. Let the CLI overwrite the stored access token and refresh token with the new pair.
  4. 4. Run `./backlog.sh status` if you want to confirm the new expiry timestamps.

Keep Going in Sign In and Sessions

Stay in the same interface and move to the next closest task in this topic when needed.

Nearby Guides

These guides stay close to the current workflow so you can keep moving without restarting discovery.