Skip to content

Commit

Permalink
Fix GitHub login token
Browse files Browse the repository at this point in the history
  • Loading branch information
zacbre committed May 9, 2024
1 parent d816203 commit cd36623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/login/providers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl Provider {
pub async fn get_user_info(&self, scheme: Scheme, host: String, token: String) -> Result<ThirdPartyUserInfo, OauthError> {
let user_info: OauthUserInfo = match self {
#[cfg(feature = "github-login")]
Self::Github(oauth) => github::user_info(oauth, host).await?.into(),
Self::Github(oauth) => github::user_info(oauth, token).await?.into(),
#[cfg(feature = "gitlab-login")]
Self::Gitlab(oauth) => gitlab::user_info(scheme, oauth, host, token).await?.into(),
#[cfg(feature = "google-login")]
Expand Down

0 comments on commit cd36623

Please sign in to comment.