---
title: "AuthenticationException — échec OAuth2"
method: GET
path: "/Exceptions/AuthenticationException"
tags: ["Exceptions"]
---

# AuthenticationException — échec OAuth2

`GET /Exceptions/AuthenticationException`

Levée quand l'authentification OAuth2 échoue (identifiants invalides, token expiré non renouvelable).

```php
use QrCommunication\VivaMerchant\Exceptions\AuthenticationException;

try {
    $viva->account->info();
} catch (AuthenticationException $e) {
    echo $e->getMessage(); // 'OAuth2 authentication failed: ...'
    // httpStatus = 401
}
```

## Response `200`

Classe AuthenticationException

---

[API](https://skmtc.net/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php.md) · [All operations](https://skmtc.net/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qrcommunication/viva-wallet-merchant-sdk-re-fe-rence-php/versions/bcafd06ce584/schema)
