Skip to content

Commit

Permalink
Fix comments about csrf_state
Browse files Browse the repository at this point in the history
Fixes #208.
  • Loading branch information
Ike McCreery committed Jan 22, 2024
1 parent e24e255 commit 8b7d7a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
//!
//! // Once the user has been redirected to the redirect URL, you'll have access to the
//! // authorization code. For security reasons, your code should verify that the `state`
//! // parameter returned by the server matches `csrf_state`.
//! // parameter returned by the server matches `csrf_token.secret()`.
//!
//! // Now you can trade it for an access token.
//! let token_result =
Expand Down Expand Up @@ -202,7 +202,7 @@
//!
//! // Once the user has been redirected to the redirect URL, you'll have access to the
//! // authorization code. For security reasons, your code should verify that the `state`
//! // parameter returned by the server matches `csrf_state`.
//! // parameter returned by the server matches `csrf_token.secret()`.
//!
//! // Now you can trade it for an access token.
//! let token_result = client
Expand Down Expand Up @@ -259,7 +259,7 @@
//!
//! // Once the user has been redirected to the redirect URL, you'll have the access code.
//! // For security reasons, your code should verify that the `state` parameter returned by the
//! // server matches `csrf_state`.
//! // server matches `csrf_token.secret()`.
//!
//! # Ok(())
//! # }
Expand Down

0 comments on commit 8b7d7a9

Please sign in to comment.