world-game/kirby/src/Http/Request/Auth/BearerAuth.php
2026-01-13 10:21:41 +01:00

33 lines
551 B
PHP

<?php
namespace Kirby\Http\Request\Auth;
use Kirby\Http\Request\Auth;
/**
* Bearer token authentication data
*
* @package Kirby Http
* @author Bastian Allgeier <bastian@getkirby.com>
* @link https://getkirby.com
* @copyright Bastian Allgeier
* @license https://opensource.org/licenses/MIT
*/
class BearerAuth extends Auth
{
/**
* Returns the authentication token
*/
public function token(): string
{
return $this->data;
}
/**
* Returns the auth type
*/
public function type(): string
{
return 'bearer';
}
}