Skip to content

Commit 045ed5a

Browse files
authored
Move accounts API to basic auth (#531)
1 parent 911bed0 commit 045ed5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Account/ClientFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use Psr\Container\ContainerInterface;
88
use Vonage\Client\APIResource;
9+
use Vonage\Client\Credentials\Handler\BasicHandler;
910
use Vonage\Client\Credentials\Handler\BasicQueryHandler;
1011

1112
class ClientFactory
@@ -18,7 +19,7 @@ public function __invoke(ContainerInterface $container): Client
1819
->setBaseUrl($accountApi->getClient()->getRestUrl())
1920
->setIsHAL(false)
2021
->setBaseUri('/account')
21-
->setAuthHandlers(new BasicQueryHandler())
22+
->setAuthHandlers(new BasicHandler())
2223
;
2324

2425
return new Client($accountApi);

0 commit comments

Comments
 (0)