CSRF values are empty

I am using

“slim/csrf”: “~0.8.3” and “slim/slim”: “~3.12.3” and my custom twig function for this

I am trying to understand why values are empty on my page

<input type="hidden" name="csrf_name" value="">
<input type="hidden" name="csrf_value" value="">

Session was started in the app but this values are empty for some reason.
Any ideas ?

this method returns null

but why ?

    /**
     * @return string
     */
    public function getTokenName()
    {
        return isset($this->keyPair[$this->getTokenNameKey()]) ? $this->keyPair[$this->getTokenNameKey()] : null;
    }

    /**
     * @return string
     */
    public function getTokenValue()
    {
        return isset($this->keyPair[$this->getTokenValueKey()]) ? $this->keyPair[$this->getTokenValueKey()] : null;
    }

okey, issue founded and fixed :slight_smile:

$app->add($flextype->get('csrf'));

this code I forget to add in my app