Skip to content

Commit

Permalink
feat: ServiceAccountJwtAccessCredentials omits expires_in and token_t…
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwarajanand authored Jan 4, 2024
1 parent 447976e commit ee2436d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Credentials/ServiceAccountJwtAccessCredentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ public function fetchAuthToken(callable $httpHandler = null)
// Set the self-signed access token in OAuth2 for getLastReceivedToken
$this->auth->setAccessToken($access_token);

return ['access_token' => $access_token];
return [
'access_token' => $access_token,
'expires_in' => $this->auth->getExpiry(),
'token_type' => 'Bearer'
];
}

/**
Expand Down

0 comments on commit ee2436d

Please sign in to comment.