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
{{ message }}
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.
I tried to use the field username of my users table for the authentication instead of email. So I changed "usernameField": "email", to "usernameField": "username", in default.json
But when I try to create a new user with username/password, I have this error returned by the server:
info: error: authentication - Method: create: Missing credentials
error: Error
at Object.<anonymous> (C:\Development\feathers\grapevine-server\node_modules\feathers-errors\lib\index.js:64:27)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Development\feathers\grapevine-server\node_modules\feathers-rest\lib\wrappers.js:13:23)
at Module._compile (module.js:571:32)
any idea of what might be the problem?
The text was updated successfully, but these errors were encountered:
The problem was actually that I had an env variable called "USERNAME" on windows and it messed up with feathers.js on runtime. Problem solved by escaping the "username" value with "\" in my default.json file (so "usernameField": "\\username").
I tried to use the field
username
of myusers
table for the authentication instead ofemail
. So I changed"usernameField": "email",
to"usernameField": "username",
in default.jsonBut when I try to create a new user with username/password, I have this error returned by the server:
any idea of what might be the problem?
The text was updated successfully, but these errors were encountered: