use crate::server::auth::authenticator::{Authenticator, AuthResult};
use crate::common::error::Result;
use crate::common::device::DeviceInfo;
use async_trait::async_trait;
pub struct DefaultAuthenticator;
#[async_trait]
impl Authenticator for DefaultAuthenticator {
async fn authenticate(
&self,
_token: &str,
_connection_id: &str,
_device_info: Option<&DeviceInfo>,
_metadata: Option<&std::collections::HashMap<String, Vec<u8>>>,
) -> Result<AuthResult> {
Ok(AuthResult::success(None))
}
}