Skip to content

Commit 1cc5740

Browse files
Add detailed exception documentation for getTokenAsync method
1 parent 0017750 commit 1cc5740

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

php/src/vaas/Authentication/AuthenticatorInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ interface AuthenticatorInterface
1313
* If the token is expired, a new token will be requested.
1414
* @param Cancellation|null $cancellation Cancellation token
1515
* @return Future Future that resolves to the access token as string
16+
* @throws VaasAuthenticationException The Vaas authentication failed. Recommended actions: Double-check your credentials in the authenticator object. Check if your authenticator connects to the correct token endpoint. Check if the token endpoint is reachable. If your problem persists contact G DATA.
1617
*/
1718
public function getTokenAsync(?Cancellation $cancellation = null): Future;
1819
}

php/src/vaas/Authentication/TokenReceiver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function __construct(
3636
* If the token is expired, a new token will be requested.
3737
* @param Cancellation|null $cancellation Cancellation token
3838
* @return Future Future that resolves to the access token as string
39+
* @throws VaasAuthenticationException The Vaas authentication failed. Recommended actions: Double-check your credentials in the authenticator object. Check if your authenticator connects to the correct token endpoint. Check if the token endpoint is reachable. If your problem persists contact G DATA.
3940
*/
4041
public function getTokenAsync(?Cancellation $cancellation = null): Future
4142
{

0 commit comments

Comments
 (0)