Reputation: 35
In laravel 5.7 Logout functionality not working when im going to click logout button it show me this error /var/www/html/orderManager/vendor/auth0/login/src/Auth0/Login/Auth0Service.php
$this->authApi = new Authentication($this->auth0Config['domain'],
$this->auth0Config['client_id']);
"Undefined index: domain"
web.php
Route::get('logout', 'HomeController@logout');
HomeController.php
public function logout() {
Auth::logout();
Session::flush();
return redirect('/login');
}
Upvotes: 0
Views: 378
Reputation: 822
In case you are doing a custom logout yourself, you can change your logout method to look like this
public function logout() {
auth()->logout();
return redirect('/login');
}
Then remove the auth0 package and try running composer update
Upvotes: 0
Reputation: 35
i remove this
"auth0/login": "~5.0"
from composer.json and update composer
and its working..
Upvotes: 1