Skip to content

Bug in Codegen of Authentication generation #3599

@MartinElsaesser

Description

@MartinElsaesser

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions