src/Client/OAuthClient.php
public function registerRefreshTokenMiddleware(IRefreshTokenMiddleware $middleware): IOAuthClient
    {
        $middleware->setClient($this);
        $this->refreshTokenMiddlewares[get_class($middleware)] = $middleware;

        return $this;
    }
public function registerRefreshTokenMiddleware(IRefreshTokenMiddleware $middleware): IOAuthClient
    {
        $middleware->setClient($this);
        $this->refreshTokenMiddlewares[get_class($middleware)] = $middleware;

        return $this;
    }
public function registerRefreshTokenMiddleware ( IRefreshTokenMiddleware $ middleware ) : IOAuthClient { $ middleware -> setClient ( $ this ) ; $ this -> refreshTokenMiddlewares [ get_class ( $ middleware ) ] = $ middleware ; return $ this ; }
Register a middleware to take care of refresh token

@param IRefreshTokenMiddleware $middleware

@return IOAuthClient
Register a middleware to take care of refresh token