Fatal error: Uncaught Error: Call to a member function getName() on null in /var/www/html/src/OAuthMiddleware.php:76 Stack trace: #0 [internal function]: OAuthMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App)) #1 /var/www/html/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(67): call_user_func(Object(OAuthMiddleware), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App)) #2 /var/www/html/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(114): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response)) #3 /var/www/html/vendor/slim/slim/Slim/App.php(315): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response)) #4 /var/www/html/public/index.php(431): Slim\App->run() #5 {main} thrown in /var/www/html/src/OAuthMiddleware.php on line 76