# wordpress-seo/28.3/src/ai-authorization/application/code-verifier-handler-interface.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 28.3. 34 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.3/code/src/ai-authorization/application/code-verifier-handler-interface.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.3/raw/src/ai-authorization/application/code-verifier-handler-interface.php
- Modified: 2025-07-15T13:36:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/28.3/code/src/ai-authorization/application/code-verifier-handler-interface.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\AI_Authorization\Application;

use Yoast\WP\SEO\AI_Authorization\Domain\Code_Verifier;

/**
 * Interface Code_Verifier_Handler_Interface
 *
 * This interface defines the methods for handling code verifier.
 */
interface Code_Verifier_Handler_Interface {

	/**
	 * Generate a code verifier for a user.
	 *
	 * @param string $user_email The user email.
	 *
	 * @return Code_Verifier The generated code verifier.
	 */
	public function generate( string $user_email ): Code_Verifier;

	/**
	 * Validate the code verifier for a user.
	 *
	 * @param int $user_id The user ID.
	 *
	 * @return string The code verifier.
	 *
	 * @throws RuntimeException If the code verifier is expired or invalid.
	 */
	public function validate( int $user_id ): string;
}

```
