We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6b8f9c0 + 74e3d95 commit 0a8592fCopy full SHA for 0a8592f
src/services/oidc.rs
@@ -287,7 +287,8 @@ impl OnJwtError for OIDCErrorHandler {
287
warn!("No matching jwk for request found, refreshing jwks...");
288
289
let handle = Handle::current();
290
- handle.block_on(async { self.authority.refresh().await.ok() });
+ let authority = self.authority.clone();
291
+ handle.spawn(async move { authority.refresh().await.ok() });
292
293
Status::unauthenticated("unauthenticated").into_http()
294
}
0 commit comments