Skip to content

Commit

Permalink
Fix comments about csrf_state (#245)
Browse files Browse the repository at this point in the history
Fixes #208.

Co-authored-by: Ike McCreery <[email protected]>
  • Loading branch information
ikehz and Ike McCreery authored Jan 23, 2024
1 parent e24e255 commit bc66c72
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`.
//!
//! // 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`.
//!
//! // 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`.
//!
//! # Ok(())
//! # }
Expand Down

0 comments on commit bc66c72

Please sign in to comment.