Why I am unable to authenticate using Auth0?

Why I am unable to authenticate using Auth0?

dev.to - Sep 13

I try to make an authenticatable endpoint using Auth0:

I try to authenticate an endpoint using the auth0 library on an existing laravel 5.8 application (I know I need a serious upgrade but ain't got time):

$ composer require auth0/login
$ php artisan vendor:publish --tag=auth0-config

And I made the following route:

        return response()->json([
            'message' => 'Hello from

But I'm stuck on this error:

Argument 1 passed to Auth0\Login\Auth0Service::__construct() must be of the type array, null given, called in /var/www/html/api/vendor/auth0/login/src/Auth0/Login/LoginServiceProvider.php on line 68
Enter fullscreen mode Exit fullscreen mode

Can somebody help me?