Skip to content

Commit

Permalink
RefreshToken should return the token
Browse files Browse the repository at this point in the history
  • Loading branch information
pelmered committed Sep 5, 2024
1 parent d78f024 commit 370cf89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RefreshToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __invoke(
string $clientSecret,
array $options,
string $tokenType = 'Bearer'
): PendingRequest {
): string {
$options = array_merge([
'scopes' => [],
'auth_type' => 'basic',
Expand Down Expand Up @@ -51,6 +51,6 @@ public function __invoke(

Cache::put('oauth_token_'.$tokenName, $accessToken, $ttl);

return Http::withToken($accessToken, $tokenType);
return $accessToken;
}
}

0 comments on commit 370cf89

Please sign in to comment.