You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
#13413
Why must the authenticationService.login method pass a password?
If you do not pass the password, it will report an error
To Reproduce
You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at new NodeError (node:internal/errors:372:5)
at Function.from (node:buffer:323:9)
at Object.verify (/Users/mac/WebstormProjects/api.bookkeeping.com/node_modules/argon2/argon2.js:95:31)
at LocalAuthDriver.verify (/Users/mac/WebstormProjects/api.bookkeeping.com/node_modules/directus/dist/auth/drivers/local.js:34:56)
at LocalAuthDriver.login (/Users/mac/WebstormProjects/api.bookkeeping.com/node_modules/directus/dist/auth/drivers/local.js:39:20)
at AuthenticationService.login (/Users/mac/WebstormProjects/api.bookkeeping.com/node_modules/directus/dist/services/authentication.js:102:28)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Errors Shown
No response
What version of Directus are you using?
9.10.0
What version of Node.js are you using?
18.0.0
What database are you using?
Postgres 14
What browser are you using?
Chrome
How are you deploying Directus?
cli
The text was updated successfully, but these errors were encountered:
Describe the Bug
Why must the authenticationService.login method pass a password?
If you do not pass the password, it will report an error
To Reproduce
You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at new NodeError (node:internal/errors:372:5)
at Function.from (node:buffer:323:9)
at Object.verify (/Users/mac/WebstormProjects/api.bookkeeping.com/node_modules/argon2/argon2.js:95:31)
at LocalAuthDriver.verify (/Users/mac/WebstormProjects/api.bookkeeping.com/node_modules/directus/dist/auth/drivers/local.js:34:56)
at LocalAuthDriver.login (/Users/mac/WebstormProjects/api.bookkeeping.com/node_modules/directus/dist/auth/drivers/local.js:39:20)
at AuthenticationService.login (/Users/mac/WebstormProjects/api.bookkeeping.com/node_modules/directus/dist/services/authentication.js:102:28)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Errors Shown
No response
What version of Directus are you using?
9.10.0
What version of Node.js are you using?
18.0.0
What database are you using?
Postgres 14
What browser are you using?
Chrome
How are you deploying Directus?
cli
The text was updated successfully, but these errors were encountered: