mirror of
https://github.com/tribufu/tribufu-rust
synced 2026-06-01 09:42:37 +00:00
Update lib.rs
This commit is contained in:
parent
9861f51733
commit
d9c4c40749
1 changed files with 1 additions and 1 deletions
|
|
@ -365,7 +365,7 @@ impl TribufuApi {
|
||||||
Ok(response.json().await?)
|
Ok(response.json().await?)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn get_user_info(&self) -> Result<User> {
|
pub async fn get_user_info(&self) -> Result<Profile> {
|
||||||
let url = format!("{}/v1/oauth2/userinfo", self.base_url);
|
let url = format!("{}/v1/oauth2/userinfo", self.base_url);
|
||||||
let headers = self.headers();
|
let headers = self.headers();
|
||||||
let response = self.http.get(url).headers(headers).send().await?;
|
let response = self.http.get(url).headers(headers).send().await?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue