mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
refactor: Fix errors in api/client/openid.rs
This commit is contained in:
@@ -29,10 +29,10 @@ pub(crate) async fn create_openid_token_route(
|
|||||||
.users
|
.users
|
||||||
.create_openid_token(&body.user_id, &access_token)?;
|
.create_openid_token(&body.user_id, &access_token)?;
|
||||||
|
|
||||||
Ok(account::request_openid_token::v3::Response {
|
Ok(account::request_openid_token::v3::Response::new(
|
||||||
access_token,
|
access_token,
|
||||||
token_type: TokenType::Bearer,
|
TokenType::Bearer,
|
||||||
matrix_server_name: services.server.name.clone(),
|
services.server.name.clone(),
|
||||||
expires_in: Duration::from_secs(expires_in),
|
Duration::from_secs(expires_in),
|
||||||
})
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user