Как добавить аутентификационную промежуточную программу для google-oauth2?
Я пытаюсь добавить промежуточное программное обеспечение для аутентификации с помощью стратегии "Google" и застрял со следующей ошибкой. Трудно найти, что здесь не так.
Хотя я выполняю те же действия, что и в https://www.youtube.com/watch?v=nK6fkNShhGc
эта ошибка появляется всякий раз, когда добавляется промежуточное ПО для аутентификации.
Пожалуйста, найдите мой код @ https://github.com/athulmurali/jamnjam-backend.git
Ошибка:
Error: Failed to lookup view "error" in views directory "/Users/athulmuralidharan/webDev/project/jamnjam-server/views"
at Function.render (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/application.js:580:17)
at ServerResponse.render (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/response.js:1008:7)
at /Users/athulmuralidharan/webDev/project/jamnjam-server/app.js:40:7
at Layer.handle_error (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/layer.js:71:5)
at trim_prefix (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:315:13)
at /Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:335:12)
at next (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:275:10)
at Layer.handle_error (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/layer.js:67:12)
at trim_prefix (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:315:13)
at /Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:335:12)
at Immediate.next (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:275:10)
at Immediate.<anonymous> (/Users/athulmuralidharan/webDev/project/jamnjam-server/node_modules/express/lib/router/index.js:635:15)
at runCallback (timers.js:757:11)
at tryOnImmediate (timers.js:717:5)