Skip to content

Commit

Permalink
Move accounts API to basic auth (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
SecondeJK authored Jan 20, 2025
1 parent 911bed0 commit 045ed5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Account/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Psr\Container\ContainerInterface;
use Vonage\Client\APIResource;
use Vonage\Client\Credentials\Handler\BasicHandler;
use Vonage\Client\Credentials\Handler\BasicQueryHandler;

class ClientFactory
Expand All @@ -18,7 +19,7 @@ public function __invoke(ContainerInterface $container): Client
->setBaseUrl($accountApi->getClient()->getRestUrl())
->setIsHAL(false)
->setBaseUri('/account')
->setAuthHandlers(new BasicQueryHandler())
->setAuthHandlers(new BasicHandler())
;

return new Client($accountApi);
Expand Down

0 comments on commit 045ed5a

Please sign in to comment.