{"record":{"id":"a929ce238a2684fc","repo":"atuinsh/atuin","slug":"authentication-timed-out-please-try-again","errorCode":null,"errorMessage":"Authentication timed out. Please try again.","messagePattern":"Authentication timed out\\. Please try again\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/atuin-client/src/hub.rs","lineNumber":158,"sourceCode":"    }\n\n    /// Poll until completion or timeout\n    ///\n    /// This is a convenience method that polls repeatedly until the auth completes\n    /// or times out.\n    pub async fn wait_for_completion(\n        &self,\n        timeout: Duration,\n        poll_interval: Duration,\n    ) -> Result<String> {\n        let start = std::time::Instant::now();\n\n        debug!(\"Polling for Hub authentication completion...\");\n\n        loop {\n            if start.elapsed() > timeout {\n                warn!(\"Authentication loop exited due to timeout\");\n                bail!(\"Authentication timed out. Please try again.\");\n            }\n\n            match self.poll().await? {\n                HubAuthStatus::Complete(token) => return Ok(token),\n                HubAuthStatus::Failed(error) => {\n                    bail!(\"Authentication failed: {}\", error);\n                }\n                HubAuthStatus::Pending => {\n                    tokio::time::sleep(poll_interval).await;\n                }\n            }\n        }\n    }\n}\n\n/// Save a hub session token\n///\n/// This saves the token to the meta store so it can be used for subsequent Hub API calls.","sourceCodeStart":140,"sourceCodeEnd":176,"githubUrl":"https://github.com/atuinsh/atuin/blob/15fe1318f1df51de604262eb50734c9883d48e7b/crates/atuin-client/src/hub.rs#L140-L176","documentation":"Error \"Authentication timed out. Please try again.\" thrown in atuinsh/atuin.","triggerScenarios":"Fires when the Hub authentication flow does not complete within the allowed time window.","commonSituations":"See trigger scenarios.","solutions":["Complete the browser authentication promptly and try again."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"15fe1318f1df51de604262eb50734c9883d48e7b","analyzedAt":"2026-08-19T08:56:57.719Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}