refactor(oauth): Avoid holding pending grants lock across async calls

Convert pending grants and tickets to SyncMutex and scope locks tightly

before awaiting external calls in grant_info and redeem_token.
This commit is contained in:
Jade Ellis committed 2026-10-28 21:46:29 +00:00
1 parent ad0181a3d8
commit 98ae1fcaa1
2 files changed
+69 -68

No files matched your search

-1
View File
@@ -242,7 +242,6 @@ async fn route_device_code(
services
.oauth
.validate_device_code(user_id, &device_code)
.await
.map_err(WebError::BadRequest)?;
response!(DeviceCodeGrant::new(context, user_card, DeviceCodeGrantBody::Success))