1 2 3 4 5 6 7 8
use crate::env_manager::get_env_var; pub fn get_jwt_secret() -> Result<Vec<u8>, String> { match get_env_var("JWT_SECRET") { Some(secret) => Ok(secret.into_bytes()), None => Err("JWT_SECRET environment variable not set".to_string()), } }