Use new authenticator
This commit is contained in:
parent
8526a45e13
commit
932665a767
@ -6,6 +6,7 @@ edition = "2021"
|
||||
[features]
|
||||
default = ['use-redis']
|
||||
use-redis = ["redis", "redis-async-pool"]
|
||||
serde-transparent = []
|
||||
|
||||
[dependencies]
|
||||
actix-web = "4"
|
||||
|
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user