---
id: gk-foundation-secure-download-validate-token
title: "Filter - gk/foundation/secure-download/validate-token"
sidebar_label: "gk/foundation/secure-download/validate-token"
tags:
  - "1.3.0"
---

# Filter: gk/foundation/secure-download/validate-token

Allows overriding the token validation result.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $validation_result | `array\|false` | The validation result (token data array or false). |
| $token_data | `array\|null` | Raw token data array (may be invalid or partial). |
| $token | `string` | The original encrypted token. |
| $failure_code | `string\|null` | Optional machine-readable failure code (e.g. 'expired'). |
| $exception | `\Exception\|null` | The thrown exception instance, if any. |

### Since

- 1.3.0

### Source

Defined in `Components/SecureDownload.php` at line 767

