use std::time::Duration;
#[derive(Debug, Clone)]
pub struct FutureAuthConfig {
pub api_url: String,
pub secret_key: String,
pub project_name: String,
pub session_ttl: Duration,
pub otp_ttl: Duration,
pub otp_length: usize,
pub cookie_name: String,
}
impl Default for FutureAuthConfig {
fn default() -> Self {
Self {
api_url: "https://future-auth.com".into(),
secret_key: String::new(),
project_name: String::new(),
session_ttl: Duration::from_secs(30 * 24 * 60 * 60),
otp_ttl: Duration::from_secs(10 * 60),
otp_length: 6,
cookie_name: "futureauth_session".into(),
}
}
}