public function generateNewToken(ServerRequestInterface $request)
    {
        
        $pair = $this->generateToken();

        $request = $this->attachRequestAttributes($request, $pair);

        return $request;
    }
public function generateNewToken(ServerRequestInterface $request)
    {
        
        $pair = $this->generateToken();

        $request = $this->attachRequestAttributes($request, $pair);

        return $request;
    }
public function generateNewToken ( ServerRequestInterface $ request ) { $ pair = $ this -> generateToken ( ) ; $ request = $ this -> attachRequestAttributes ( $ request , $ pair ) ; return $ request ; }
Generates a new CSRF token and attaches it to the Request Object

@param  ServerRequestInterface $request PSR7 response object.

@return ServerRequestInterface PSR7 response object.
Generates a new CSRF token and attaches it to the Request Object