Skip to content

Commit

Permalink
Move verify legacy back to token body handler (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
SecondeJK authored Jan 20, 2025
1 parent 2bb4c87 commit ca5a904
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Verify/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

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

class ClientFactory
Expand All @@ -19,7 +18,7 @@ public function __invoke(ContainerInterface $container): Client
->setIsHAL(false)
->setBaseUri('/verify')
->setErrorsOn200(true)
->setAuthHandlers(new BasicHandler())
->setAuthHandlers(new TokenBodyHandler())
->setExceptionErrorHandler(new ExceptionErrorHandler());

return new Client($api);
Expand Down

0 comments on commit ca5a904

Please sign in to comment.