Skip to content

Commit

Permalink
Expose Auth::client()
Browse files Browse the repository at this point in the history
  • Loading branch information
oxalica committed Mar 23, 2024
1 parent e5d604f commit b932c7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
- `impl Clone for OneDrive`.
- Configurable `Tenant` for `Auth`, this allows login into applications that
accept only personal accounts.
- Expose `Auth::client`.

### Changed

Expand Down
6 changes: 6 additions & 0 deletions src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ impl Auth {
}
}

/// Get the `client` used to create this instance.
#[must_use]
pub fn client(&self) -> &Client {
&self.client
}

/// Get the `client_id` used to create this instance.
#[must_use]
pub fn client_id(&self) -> &str {
Expand Down

0 comments on commit b932c7c

Please sign in to comment.