Use new authenticator

This commit is contained in:
eraden 2023-08-13 15:34:31 +02:00
parent 8526a45e13
commit 932665a767
2 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@ edition = "2021"
[features]
default = ['use-redis']
use-redis = ["redis", "redis-async-pool"]
serde-transparent = []
[dependencies]
actix-web = "4"

View File

@ -40,6 +40,8 @@ impl actix_web::ResponseError for Error {
}
#[derive(Clone)]
#[cfg_attr(feature = "serde-transparent", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "serde-transparent", serde(transparent))]
pub struct Authenticated<T>(Arc<T>);
impl<T> std::ops::Deref for Authenticated<T> {