File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 131131//!
132132//! // Once the user has been redirected to the redirect URL, you'll have access to the
133133//! // authorization code. For security reasons, your code should verify that the `state`
134- //! // parameter returned by the server matches `csrf_state `.
134+ //! // parameter returned by the server matches `csrf_token.secret() `.
135135//!
136136//! // Now you can trade it for an access token.
137137//! let token_result =
202202//!
203203//! // Once the user has been redirected to the redirect URL, you'll have access to the
204204//! // authorization code. For security reasons, your code should verify that the `state`
205- //! // parameter returned by the server matches `csrf_state `.
205+ //! // parameter returned by the server matches `csrf_token.secret() `.
206206//!
207207//! // Now you can trade it for an access token.
208208//! let token_result = client
259259//!
260260//! // Once the user has been redirected to the redirect URL, you'll have the access code.
261261//! // For security reasons, your code should verify that the `state` parameter returned by the
262- //! // server matches `csrf_state `.
262+ //! // server matches `csrf_token.secret() `.
263263//!
264264//! # Ok(())
265265//! # }
Original file line number Diff line number Diff line change @@ -594,7 +594,7 @@ new_secret_type protection
597- /// via the `state` parameter.
597+ /// via the `state` parameter. Compare the `state` parameter to `self.secret()`.
598598 ///
599599 #[ must_use]
600600 #[ derive( Clone , Deserialize , Serialize ) ]
You can’t perform that action at this time.
0 commit comments