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:
Route::prefix('/test')->middleware(['auth0.authenticate'])->group(function(){
Route::get("/hello",function(){
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
Can somebody help me?
Latest comments (2)
The error message says you didn't pass any argument. Where is the code you use to authenticate
follow this guide