Skip to content

Commit

Permalink
Scope field is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
cottinisimone committed May 22, 2024
1 parent e53dfe9 commit 51f1ddc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/auth0/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ impl Token {
}
}

/// The successful response received from the authorization server containing the access token.
/// Related [RFC](https://www.rfc-editor.org/rfc/rfc6749#section-5.1)
#[derive(Deserialize, Serialize, Debug)]
struct FetchTokenResponse {
access_token: String,
scope: String,
scope: Option<String>,
expires_in: i32,
token_type: String,
}
Expand Down

0 comments on commit 51f1ddc

Please sign in to comment.