Skip to content

Commit

Permalink
Merge pull request #25 from zacbre/zac/fix-github-login-token
Browse files Browse the repository at this point in the history
Fix GitHub Login Token
  • Loading branch information
Clem-Fern committed May 15, 2024
2 parents d816203 + cd36623 commit c44f418
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 c44f418

Please sign in to comment.