Reputation: 118
After generating an app that has local auth with the feathers cli
the first user gets created normally but when i try to authenticate with it it gives this error
then i went ahead and tried to add other users and it responds with 409 conflict
although i change all the information
this is the mongoose model that am using
module.exports = function (app) {
const modelName = "users";
const mongooseClient = app.get("mongooseClient");
const schema = new mongooseClient.Schema(
{
userName: { type: String, unique: true, lowercase: true },
password: { type: String, required: true },
displayName: { type: String, required: true },
},
{
timestamps: true,
}
);
Upvotes: 1
Views: 55
Reputation: 118
This is a windows issue apparently you'll just have to edit escape the name as it is WRITTEN IN THE OFFICIAL DOCS 🤦
I apologize greatly for your time
Upvotes: 1