Skip to content

Commit

Permalink
fix!: oauth1 Token struct fields and authorize function were open to …
Browse files Browse the repository at this point in the history
…the outside world
  • Loading branch information
jacobsvante committed Nov 1, 2021
1 parent d95b76f commit f0ec653
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/oauth1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ impl Algorithm {

#[derive(Clone, Debug)]
pub struct Token {
pub key: String,
pub secret: String,
key: String,
secret: String,
}

impl Token {
Expand All @@ -38,7 +38,7 @@ impl Token {
}
}

pub fn authorize(
pub(crate) fn authorize(
method: &str,
uri: &str,
consumer: &Token,
Expand Down

0 comments on commit f0ec653

Please sign in to comment.