kiwi_sdk/hook/authenticate.rs
1//! Types and macros for building authentication hooks
2
3pub use kiwi_macro::authenticate;
4
5/// The outcome of an authentication hook
6pub enum Outcome {
7 /// Authenticate the connection
8 Authenticate,
9 /// Reject the connection
10 Reject,
11 /// Authenticate the connection and attach custom context for use in the
12 /// intercept hook
13 WithContext(Vec<u8>),
14}