You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-31 09:24:31 +03:00
storage: ensure the repository trait can be boxed
and define some wrappers to map the errors
This commit is contained in:
@ -426,7 +426,8 @@ async fn refresh_token_grant(
|
||||
.await?;
|
||||
|
||||
if let Some(access_token_id) = refresh_token.access_token_id {
|
||||
if let Some(access_token) = repo.oauth2_access_token().lookup(access_token_id).await? {
|
||||
let access_token = repo.oauth2_access_token().lookup(access_token_id).await?;
|
||||
if let Some(access_token) = access_token {
|
||||
repo.oauth2_access_token()
|
||||
.revoke(clock, access_token)
|
||||
.await?;
|
||||
|
Reference in New Issue
Block a user