use crate::error::FastMCPError;
use crate::server::auth::oidc::OIDCProvider;
pub struct Auth0;
impl Auth0 {
pub async fn create(domain: &str, client_id: &str) -> Result<OIDCProvider, FastMCPError> {
let clean_domain = domain
.trim_start_matches("https://")
.trim_start_matches("http://")
.trim_end_matches('/');
let issuer_url = format!("https://{}/", clean_domain);
OIDCProvider::new(&issuer_url, client_id).await
}
}