Pagekit\Auth\Handler\DatabaseHandler::getToken PHP Method

getToken() protected method

Gets the token from the request.
protected getToken ( ) : mixed
return mixed
    protected function getToken()
    {
        if ($request = $this->getRequest()) {
            return $request->cookies->get($this->config['cookie']['name']);
        }
    }