Tobias Sid
Tobias Sid

Reputation: 118

Feathersjs auth conflict on Windows

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

enter image description here

then i went ahead and tried to add other users and it responds with 409 conflict although i change all the information

enter image description here

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

Answers (1)

Tobias Sid
Tobias Sid

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 🤦 image

I apologize greatly for your time

image

Upvotes: 1

Related Questions