From c1451924d88d146c7dc00c01d8c5f248978001b2 Mon Sep 17 00:00:00 2001 From: pennae Date: Sun, 17 Jul 2022 09:45:23 +0200 Subject: don't use SecretBytes in HawkKey/SecretKey --- src/api/auth/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/auth/mod.rs') diff --git a/src/api/auth/mod.rs b/src/api/auth/mod.rs index 2c6d34d..d50dcc2 100644 --- a/src/api/auth/mod.rs +++ b/src/api/auth/mod.rs @@ -146,7 +146,7 @@ impl crate::auth::AuthSource for WithFxaLogin { ) -> anyhow::Result<(SecretBytes<32>, Self::Context)> { let db = Authenticated::<(), Self>::get_conn(r).await?; let k = db.use_session(id).await?; - Ok((k.req_hmac_key.0.clone(), k)) + Ok((SecretBytes(k.req_hmac_key.0), k)) } async fn bearer_token( _: &Request<'_>, -- cgit v1.2.3