Skip to content

Commit

Permalink
fixup! Remove jwks_client dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
MaeIsBad committed Aug 22, 2024
1 parent 960fd71 commit 04fb1bf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/auth0/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<RwLock<Token>> = Arc::new(RwLock::new(token));

start(token_lock.clone(), client_ref.clone(), cache.clone(), config).await;
Expand Down

0 comments on commit 04fb1bf

Please sign in to comment.