codora-security 0.1.0

Authentication and Authorization library written in rust
Documentation
// use crate::authentication::Authentication;

// pub struct CookieOption {}

// pub trait CookieAuthenticationExt {
//     fn add_cookie<F>(self, func: F) -> Self
//     where
//         F: Fn(&Authentication) -> CookieOption;
// }

// impl CookieAuthenticationExt for Authentication {
//     fn add_cookie<F>(self, func: F) -> Self
//     where
//         F: Fn(&Authentication) -> CookieOption,
//     {
//         let opt = func(&self);

//         todo!()
//     }
// }