You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
data-model: don't embed the client in the auth grant
This commit is contained in:
@@ -360,7 +360,10 @@ pub(crate) async fn get(
|
||||
Err(GrantCompletionError::Internal(e)) => {
|
||||
return Err(RouteError::Internal(e))
|
||||
}
|
||||
Err(e @ GrantCompletionError::NotPending) => {
|
||||
Err(
|
||||
e @ (GrantCompletionError::NotPending
|
||||
| GrantCompletionError::NoSuchClient),
|
||||
) => {
|
||||
// This should never happen
|
||||
return Err(RouteError::Internal(Box::new(e)));
|
||||
}
|
||||
@@ -390,7 +393,10 @@ pub(crate) async fn get(
|
||||
Err(GrantCompletionError::Internal(e)) => {
|
||||
return Err(RouteError::Internal(e))
|
||||
}
|
||||
Err(e @ GrantCompletionError::NotPending) => {
|
||||
Err(
|
||||
e @ (GrantCompletionError::NotPending
|
||||
| GrantCompletionError::NoSuchClient),
|
||||
) => {
|
||||
// This should never happen
|
||||
return Err(RouteError::Internal(Box::new(e)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user