1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Run generated files updates, fix doc links & fmt

This commit is contained in:
Quentin Gliech
2023-12-08 16:18:09 +01:00
parent 7d9d97a006
commit efa6af3294
3 changed files with 13 additions and 11 deletions

View File

@@ -686,7 +686,8 @@ async fn device_code_grant(
let mut params =
AccessTokenResponse::new(access_token.access_token.clone()).with_expires_in(ttl);
// If the client uses the refresh token grant type, we also generate a refresh token
// If the client uses the refresh token grant type, we also generate a refresh
// token
if client.grant_types.contains(&GrantType::RefreshToken) {
let refresh_token_str = TokenType::RefreshToken.generate(rng);
@@ -1263,8 +1264,9 @@ mod tests {
let ClientError { error, .. } = response.json();
assert_eq!(error, ClientErrorCode::AuthorizationPending);
// Let's provision a user and create a browser session for them. This part is hard to
// test with just HTTP requests, so we'll use the repository directly.
// Let's provision a user and create a browser session for them. This part is
// hard to test with just HTTP requests, so we'll use the repository
// directly.
let mut repo = state.repository().await.unwrap();
let user = repo