# boolean_smtp_oauth_failure_notified

> Fires after an OAuth refresh failure has been handed to the supported notification channels.

Action · Tier B · Since 1.0.0



## Signature

```php
add_action( 'boolean_smtp_oauth_failure_notified', $callback, 10, 1 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$event` | `array<string, mixed>` |  |
| &nbsp;&nbsp;`connection_id` | `int` | Connection whose OAuth token failed to refresh. |
| &nbsp;&nbsp;`driver` | `string` | OAuth provider driver key. |
| &nbsp;&nbsp;`error_code` | `string` | Standardized error code. |
| &nbsp;&nbsp;`timestamp` | `int` | Unix timestamp (UTC) when notification dispatch started. |

## Fires in

- [app/Services/OAuth/OAuthFailureNotifier.php:97](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/OAuth/OAuthFailureNotifier.php#L97) — `BooleanSmtp\Services\OAuth\OAuthFailureNotifier::notifyFailure()`

## Example

```php
add_action( 'boolean_smtp_oauth_failure_notified', function ( array $event ) {
    // React to the event.
}, 10, 1 );
```
