diff --git a/passage-auth/CHANGELOG.md b/passage-auth/CHANGELOG.md index ec601eb..6717f7d 100644 --- a/passage-auth/CHANGELOG.md +++ b/passage-auth/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.2.0 (2024-05-26) + +- Changed `passage.user()` to `passage.users()` to accurately reflect the correct endpoint name + ## 0.1.4 (2024-05-26) - Resubmitting to crates.io diff --git a/passage-auth/Cargo.toml b/passage-auth/Cargo.toml index fbe919c..41abfd8 100644 --- a/passage-auth/Cargo.toml +++ b/passage-auth/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "passage-auth" -version = "0.1.4" +version = "0.2.0" description = "Authentication API for Passage by 1Password" repository = "https://github.com/Kindness-Works/passage-rs" license = "MIT" diff --git a/passage-auth/src/apis/users.rs b/passage-auth/src/apis/users.rs index d21bece..b63ddfc 100644 --- a/passage-auth/src/apis/users.rs +++ b/passage-auth/src/apis/users.rs @@ -54,7 +54,7 @@ mod tests { let client = Passage::with_config(Config::default().with_app_id("PaItOH7Ul7n2Xt3uxY671sFN".to_string())); let response = client - .user() + .users() .get_user("ted@tedlasso.org".into()) .await .unwrap(); @@ -71,7 +71,7 @@ mod tests { let client = Passage::with_config(Config::default().with_app_id("PaItOH7Ul7n2Xt3uxY671sFN".to_string())); let response = client - .user() + .users() .get_user("rupert.mannion@tedlasso.org".into()) .await .unwrap(); @@ -95,7 +95,7 @@ mod tests { .to_lowercase(); let response = client - .user() + .users() .create_user(CreateUserParams::new(format!("{local_part}@tedlasso.org"))) .await .unwrap(); diff --git a/passage-auth/src/passage.rs b/passage-auth/src/passage.rs index c5c11cb..3874b2c 100644 --- a/passage-auth/src/passage.rs +++ b/passage-auth/src/passage.rs @@ -108,7 +108,7 @@ impl Passage { } /// To call [Users] group related APIs using this client. - pub fn user(&self) -> Users { + pub fn users(&self) -> Users { Users::new(self) }