This started happening when upgraded from 2.3.1 to 2.4.1 on both MacOS and Linux. Downgrading to 2.3.1 does not cause this issue.
Cached access token appears to be stale, removing token and retrying device authorization ...
Web browser will open the following URL to begin Okta device authorization for the AWS CLI
The above repeats in a loop. The browser opens, and the usual authentication occurs, then the same message appears again and never resolves.