Skip to content

Commit d182a65

Browse files
committed
fix: github get email functions using unexistent function
1 parent 765a86c commit d182a65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Security/Guard/GithubAuthenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function onAuthenticationSuccess(Request $request, TokenInterface $token,
117117
/** @throws IdentityProviderException */
118118
private function getEmailFromGithub(AccessToken $credentials): string
119119
{
120-
$provider = $this->getClient()->getOAuth2Provider();
120+
$provider = $this->clientRegistry->getClient('github')->getOAuth2Provider();
121121
$request = $provider->getAuthenticatedRequest(
122122
'GET',
123123
'https://api.github.com/user/emails',

0 commit comments

Comments
 (0)