/// Prompt the user to visit the OAUTH2 permissions web page and enter a new
/// authorization code, then convert that to a refresh token and write that
/// refresh token to the ~/.boto file.
Prompt the user to visit the OAUTH2 permissions web page and enter a new
authorization code, then convert that to a refresh token and write that
refresh token to the ~/.boto file.
Prompt the user to visit the OAUTH2 permissions web page and enter a new authorization code then convert that to a refresh token and write that refresh token to the ~ / . boto file .
async fn update_refresh_token(boto_path: &Path) -> Result<()> {
    println!("\nThe refresh token in the {:?} file needs to be updated.", boto_path);
    let auth_code = get_auth_code()?;
    let refresh_token = auth_code_to_refresh(&auth_code).await.context("get refresh token")?;
    write_boto_refresh_token(boto_path, &refresh_token)?;
    Ok(())
}
async fn update_refresh_token ( boto_path : & Path ) -> Result < ( ) > { println ! ( " \n " boto_path ) ; let auth_code = get_auth_code ( ) ? ; let refresh_token = auth_code_to_refresh ( & auth_code ) . await . context ( " " ) ? ; write_boto_refresh_token ( boto_path , & refresh_token ) ? ; Ok ( ( ) ) }
Prompt the user to visit the OAUTH2 permissions web page and enter a new
authorization code, then convert that to a refresh token and write that
refresh token to the ~/.boto file.
Prompt the user to visit the OAUTH2 permissions web page and enter a new authorization code then convert that to a refresh token and write that refresh token to the ~ / . boto file .
boto_path
&Path