src/Valkyrja/Session/NativeSession.php
public function csrf(string $id): string
    {
        $token = bin2hex(random_bytes(64));

        $this->set($id, $token);

        return $token;
    }
public function csrf(string $id): string
    {
        $token = bin2hex(random_bytes(64));

        $this->set($id, $token);

        return $token;
    }
Get a csrf token for a unique token id.

@param string $id The csrf unique token id

@throws \Exception

@return string