Skip to content

Commit ca5a904

Browse files
authored
Move verify legacy back to token body handler (#532)
1 parent 2bb4c87 commit ca5a904

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Verify/ClientFactory.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Psr\Container\ContainerInterface;
88
use Vonage\Client\APIResource;
9-
use Vonage\Client\Credentials\Handler\BasicHandler;
109
use Vonage\Client\Credentials\Handler\TokenBodyHandler;
1110

1211
class ClientFactory
@@ -19,7 +18,7 @@ public function __invoke(ContainerInterface $container): Client
1918
->setIsHAL(false)
2019
->setBaseUri('/verify')
2120
->setErrorsOn200(true)
22-
->setAuthHandlers(new BasicHandler())
21+
->setAuthHandlers(new TokenBodyHandler())
2322
->setExceptionErrorHandler(new ExceptionErrorHandler());
2423

2524
return new Client($api);

0 commit comments

Comments
 (0)