public function authenticate(Request $request)
    {
        if (config('eyewitness.login_disabled', false)) {
            return redirect('/');
        }

        if (! app(Eye::class)->checkConfig()) {
            return redirect()->route('eyewitness.login')->withError('Eyewitness has not been configured correctly. Login has been disabled for your security. Please run "php artisan eyewitness:debug" to determine the issue.');
        }

        if ($request->app_token !== config('eyewitness.app_token') ||
            $request->secret_key !== config('eyewitness.secret_key')) {
            return redirect()->route('eyewitness.login')->withError('Incorrect credentials.');
        }

        $request->session()->put('eyewitness:auth', 1);

        return redirect(route('eyewitness.dashboard').'#overview');
    }