mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-10-24 06:02:22 +00:00
refactor: Fix errors in api/client/openid.rs
This commit is contained in:
1 file changed
+5
-5
@@ -29,10 +29,10 @@ pub(crate) async fn create_openid_token_route(
|
||||
.users
|
||||
.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,
|
||||
token_type: TokenType::Bearer,
|
||||
matrix_server_name: services.server.name.clone(),
|
||||
expires_in: Duration::from_secs(expires_in),
|
||||
})
|
||||
TokenType::Bearer,
|
||||
services.server.name.clone(),
|
||||
Duration::from_secs(expires_in),
|
||||
))
|
||||
}
|
||||
Reference in new issue
Block a user