feathers icon indicating copy to clipboard operation
feathers copied to clipboard

Bug in Codegen of Authentication generation

Open MartinElsaesser opened this issue 7 months ago • 1 comments

I stumbled on a bug in the npx feathers generate authentication command.

I ran npx feathers generate authentication with the following options: Image

Pay attention to the value for What is your authentication service name?. It is set to users and not user.

This led to me getting the following errors in src\services\users\users.schema.ts Image

My guess is, that the user part in context.params.user is hardcoded, but it should be inferred from the answer to the What is your authentication service name? question.

This bug can be reproduced by:

  • running npx feathers generate authentication
  • entering anything other than "user" for the What is your authentication service name? question

For completeness' sake, this is the config I used to setup feathers with: Image

MartinElsaesser avatar Aug 07 '25 13:08 MartinElsaesser

Probably related to https://github.com/feathersjs/feathers/issues/3412

daffl avatar Sep 09 '25 21:09 daffl