public function setTokenIntoSession()
    {
        $token = $this->getRandomToken();

        if (empty($this->storage->csrf_tokens)) {
            $this->storage->csrf_tokens = [];
        }

        $this->storage->csrf_tokens = [trim($token) => true];

        $this->token = $token;
    }