Skip to content

Commit

Permalink
Move refresh token call
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Jacobs committed Aug 26, 2019
1 parent 37b991b commit e2401eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Service/FasOpenIdOAuthClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ public function getUserInfo(OAuthToken $oauthToken): ?string
public function logOut(OAuthTokenInterface $oauthToken): void
{
if ($oauthToken->getExpiresIn() < new \DateTime()) {
$oauthToken = $this->getRefreshToken($oauthToken->getRefreshToken());
}
$oauthToken = $this->getRefreshToken($oauthToken->getRefreshToken());

$response = $this->httpClient->request('GET', 'connect/endSession', ['query' => ['id_token_hint' => $oauthToken->getIdToken()]]);

Expand Down

0 comments on commit e2401eb

Please sign in to comment.