Skip to content

Commit

Permalink
Fix feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-garcia committed Jun 13, 2024
1 parent db23e72 commit 3551d0b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/bitwarden/src/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,14 @@ pub(crate) enum ServiceAccountLoginMethod {

#[derive(Debug, Default, Clone)]
pub(crate) struct Tokens {
// These two fields are always written to, but they are not read
// from the secrets manager SDK.

#[cfg_attr(not(feature = "internal"), allow(dead_code))]
access_token: Option<String>,
pub(crate) expires_on: Option<i64>,

#[cfg_attr(not(feature = "internal"), allow(dead_code))]
pub(crate) refresh_token: Option<String>,
}

Expand Down Expand Up @@ -240,7 +245,6 @@ impl Client {
*guard = Arc::new(inner);
}

#[cfg(feature = "internal")]
pub fn is_authed(&self) -> bool {
let is_token_set = self
.tokens
Expand Down

0 comments on commit 3551d0b

Please sign in to comment.