Login bug "Cannot read properties of null"

NodeJS
Docker

Haven’t touched the login flow for months, but it suddenly throws an error when using wrong credentials:

{"status":"500","message":"Cannot read properties of null (reading 'startsWith')","stack":"TypeError: Cannot read properties of null (reading 'startsWith')\n    at DatabaseProvider.validate (/opt/node_app/lib/auth/database.js:23:67)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async DatabaseProvider.login (/opt/node_app/lib/auth/provider.js:45:26)\n    at async App._exec (/opt/node_app/lib/core/app.js:578:30)\n    at async App._exec (/opt/node_app/lib/core/app.js:545:17)\n    at async App.exec (/opt/node_app/lib/core/app.js:514:9)\n    at async App.define (/opt/node_app/lib/core/app.js:496:9)"}

When providing correct credentials it logs in successfully.
My login server connect:

My security provider properties:

Community Page
Last updated: