atuinsh/atuin · error
Authentication failed: {}
Error message
Authentication failed: {} What it means
Error "Authentication failed: {}" thrown in atuinsh/atuin.
Source
Thrown at crates/atuin-client/src/hub.rs:164
pub async fn wait_for_completion(
&self,
timeout: Duration,
poll_interval: Duration,
) -> Result<String> {
let start = std::time::Instant::now();
debug!("Polling for Hub authentication completion...");
loop {
if start.elapsed() > timeout {
warn!("Authentication loop exited due to timeout");
bail!("Authentication timed out. Please try again.");
}
match self.poll().await? {
HubAuthStatus::Complete(token) => return Ok(token),
HubAuthStatus::Failed(error) => {
bail!("Authentication failed: {}", error);
}
HubAuthStatus::Pending => {
tokio::time::sleep(poll_interval).await;
}
}
}
}
}
/// Save a hub session token
///
/// This saves the token to the meta store so it can be used for subsequent Hub API calls.
/// Note: This is separate from the sync session token.
pub async fn save_session(token: &str) -> Result<()> {
Settings::meta_store()
.await?
.save_hub_session(token)
.awaitView on GitHub (pinned to 15fe1318f1)
Solutions
- Read the embedded failure reason, fix the cause, and retry authentication.
When it happens
Trigger: Fires when the Hub authentication flow completes with an error that must be surfaced to the user.
Common situations: See trigger scenarios.
Understand the failure class
- Authentication and authorization failures — expired tokens, bad credentials, and missing scopes.
AI-assisted analysis of atuinsh/atuin@15fe1318f1 (2026-08-19).
Data as JSON: /api/errors/1413f2ef3325acef.
Report an issue: GitHub.