From 04fb1bf0a83670a408575aeb313ec75b1f4bb68a Mon Sep 17 00:00:00 2001 From: mae <26093674+MaeIsBad@users.noreply.github.com> Date: Thu, 22 Aug 2024 16:45:37 +0200 Subject: [PATCH] fixup! Remove jwks_client dependency --- src/auth0/mod.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/auth0/mod.rs b/src/auth0/mod.rs index a6a52d5..aa22240 100644 --- a/src/auth0/mod.rs +++ b/src/auth0/mod.rs @@ -33,14 +33,7 @@ impl Auth0 { Arc::new(cache::RedisCache::new(&config).await?) }; - let source: WebSource = WebSource::builder() - .with_timeout(Duration::from_secs(5)) - .with_connect_timeout(Duration::from_secs(55)) - .build(config.jwks_url().to_owned()) - .map_err(|err| Auth0Error::JwksHttpError(config.token_url().as_str().to_string(), err))?; - let token: Token = get_token(client_ref, &cache, &config).await?; - let token_lock: Arc> = Arc::new(RwLock::new(token)); start(token_lock.clone(), client_ref.clone(), cache.clone(), config).await;