* @link https://getkirby.com * @copyright Bastian Allgeier * @license https://opensource.org/licenses/MIT */ class SessionAuth extends Auth { /** * Tries to return the session object */ public function session(): Session { return App::instance()->sessionHandler()->getManually($this->data); } /** * Returns the session token */ public function token(): string { return $this->data; } /** * Returns the authentication type */ public function type(): string { return 'session'; } }