Skip to content

Commit

Permalink
Changed passage.user() to passage.users() to accurately reflect t…
Browse files Browse the repository at this point in the history
…he correct endpoint name
  • Loading branch information
beyera committed May 26, 2024
1 parent e7cd912 commit ecb694b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions passage-auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion passage-auth/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions passage-auth/src/apis/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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("[email protected]".into())
.await
.unwrap();
Expand All @@ -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("[email protected]".into())
.await
.unwrap();
Expand All @@ -95,7 +95,7 @@ mod tests {
.to_lowercase();

let response = client
.user()
.users()
.create_user(CreateUserParams::new(format!("{local_part}@tedlasso.org")))
.await
.unwrap();
Expand Down
2 changes: 1 addition & 1 deletion passage-auth/src/passage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl Passage<Config> {
}

/// To call [Users] group related APIs using this client.
pub fn user(&self) -> Users<Config> {
pub fn users(&self) -> Users<Config> {
Users::new(self)
}

Expand Down

0 comments on commit ecb694b

Please sign in to comment.