@@ -291,23 +291,14 @@ async function runShellSecurityFlow(
291291 return "Authentication code expired. Run the security checkup again to get a fresh code." ;
292292 }
293293
294- if ( pollResult . kind === "timeout" ) {
295- // Our local poll deadline was hit while the server was still
296- // returning pending. The code may still be valid server-side.
297- // Leave the pending code in place so the next invocation picks up
298- // where we left off, and tell the user to retry once they've
299- // approved in the browser.
300- return (
301- "Still waiting for you to approve in the browser.\n\n" +
302- "Once you've approved, run the security checkup again and we'll pick up where we left off."
303- ) ;
304- }
305- // pollResult.kind === "pending" (shouldn't reach here: pollDeviceAuth
306- // loops internally until a terminal state or timeout). Fall through
307- // to treat as timeout for safety.
294+ // pollResult.kind === "timeout": our local poll deadline was hit
295+ // while the server was still returning pending. The code may still
296+ // be valid server-side. Leave the pending code in place so the
297+ // next invocation picks up where we left off, and tell the user
298+ // to retry once they've approved in the browser.
308299 return (
309300 "Still waiting for you to approve in the browser.\n\n" +
310- "Once you've approved, run the security checkup again."
301+ "Once you've approved, run the security checkup again and we'll pick up where we left off ."
311302 ) ;
312303 }
313304
0 commit comments