Skip to content

Commit

Permalink
feat!: Remove public access of Host::oauth_token
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Host::oauth_token is no longer available. Use Hosts::retrieve_token instead.
  • Loading branch information
siketyan committed Sep 26, 2023
1 parent be399de commit 1ea3cb1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! ## Getting started
//! ```toml
//! [dependencies]
//! gh-config = "0.1"
//! gh-config = "0.2"
//! ```
//!
//! ## Usage
Expand Down Expand Up @@ -135,12 +135,8 @@ impl Config {
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct Host {
pub user: Option<String>,
#[deprecated(
since = "0.2.2",
note = "gh CLI has been migrated to secure storage, and the tokens there are not able to be retrieved using this field. Use [`Hosts::retrieve_token`] instead."
)]
#[serde(default)]
pub oauth_token: String,
oauth_token: String,
pub git_protocol: Option<GitProtocol>,
}

Expand Down

0 comments on commit 1ea3cb1

Please sign in to comment.