Skip to content

Commit

Permalink
Add getters for AuthClient fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Proziam committed Sep 27, 2024
1 parent 80b04bb commit aea3899
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,15 +647,17 @@ impl AuthClient {
Ok(())
}

// Add getter methods for private fields
/// Get the project URL from an AuthClient
pub fn project_url(&self) -> &String {
&self.project_url
}

/// Get the API Key from an AuthClient
pub fn api_key(&self) -> &String {
&self.api_key
}

/// Get the JWT Secret from an AuthClient
pub fn jwt_secret(&self) -> &String {
&self.jwt_secret
}
Expand Down

0 comments on commit aea3899

Please sign in to comment.