about summary refs log tree commit diff
path: root/kittybox-rs/indieauth/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'kittybox-rs/indieauth/src/lib.rs')
-rw-r--r--kittybox-rs/indieauth/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/kittybox-rs/indieauth/src/lib.rs b/kittybox-rs/indieauth/src/lib.rs
index 2cce1b9..752d9e9 100644
--- a/kittybox-rs/indieauth/src/lib.rs
+++ b/kittybox-rs/indieauth/src/lib.rs
@@ -285,7 +285,7 @@ impl AsRef<str> for State {
 ///     client_id: "https://kittybox.fireburn.ru/companion/native".parse().unwrap(),
 ///     redirect_uri: "https://kittybox.fireburn.ru/companion/native/redirect".parse().unwrap(),
 ///     state: State::new(),
-///     code_challenge: PKCEChallenge::new(verifier, PKCEMethod::default()),
+///     code_challenge: PKCEChallenge::new(&verifier, PKCEMethod::default()),
 ///     scope: Some(Scopes::new(vec![Scope::Create, Scope::Update, Scope::Delete, Scope::Media])),
 ///     me: Some("https://fireburn.ru/".parse().unwrap())
 /// };