diff --git a/lib/src/api/method/authenticate.rs b/lib/src/api/method/authenticate.rs index 04b542bf..93ecdcd6 100644 --- a/lib/src/api/method/authenticate.rs +++ b/lib/src/api/method/authenticate.rs @@ -27,7 +27,7 @@ where Box::pin(async move { let router = self.router?; let mut conn = Client::new(Method::Authenticate); - conn.execute_unit(router, Param::new(vec![self.token.into()])).await + conn.execute_unit(router, Param::new(vec![self.token.0.into()])).await }) } } diff --git a/lib/src/api/opt/auth.rs b/lib/src/api/opt/auth.rs index f3cc0388..570b0932 100644 --- a/lib/src/api/opt/auth.rs +++ b/lib/src/api/opt/auth.rs @@ -1,6 +1,5 @@ //! Authentication types -use crate::sql::Value; use serde::Deserialize; use serde::Serialize; use std::fmt; @@ -135,12 +134,6 @@ impl<'a> From<&'a str> for Jwt { } } -impl From for Value { - fn from(Jwt(jwt): Jwt) -> Self { - jwt.into() - } -} - impl fmt::Debug for Jwt { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "Jwt(REDACTED)")