Title: Bug in Codegen of Authentication generation · Issue #3599 · feathersjs/feathers · GitHub
Open Graph Title: Bug in Codegen of Authentication generation · Issue #3599 · feathersjs/feathers
X Title: Bug in Codegen of Authentication generation · Issue #3599 · feathersjs/feathers
Description: I stumbled on a bug in the npx feathers generate authentication command. I ran npx feathers generate authentication with the following options: Pay attention to the value for What is your authentication service name?. It is set to users ...
Open Graph Description: I stumbled on a bug in the npx feathers generate authentication command. I ran npx feathers generate authentication with the following options: Pay attention to the value for What is your authentic...
X Description: I stumbled on a bug in the npx feathers generate authentication command. I ran npx feathers generate authentication with the following options: Pay attention to the value for What is your authentic...
Opengraph URL: https://github.com/feathersjs/feathers/issues/3599
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug in Codegen of Authentication generation","articleBody":"I stumbled on a bug in the `npx feathers generate authentication` command.\n\nI ran `npx feathers generate authentication` with the following options:\n\u003cimg width=\"1424\" height=\"397\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/e6d8d378-f1f1-4d40-ab09-058057f3ab16\" /\u003e\n\nPay attention to the value for `What is your authentication service name?`. It is set to `users` and not `user`.\n\nThis led to me getting the following errors in `src\\services\\users\\users.schema.ts`\n\u003cimg width=\"1341\" height=\"486\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/7f8fa9e9-9eff-4d42-8efa-b6bd6a7ce420\" /\u003e\n\nMy 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.\n\n\nThis bug can be reproduced by:\n- running `npx feathers generate authentication` \n- entering anything other than \"user\" for the `What is your authentication service name?` question\n\n\n\nFor completeness' sake, this is the config I used to setup feathers with:\n\u003cimg width=\"1676\" height=\"634\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/b7bc2311-dbbc-4128-9861-d926911a09d5\" /\u003e\n","author":{"url":"https://github.com/MartinElsaesser","@type":"Person","name":"MartinElsaesser"},"datePublished":"2025-08-07T13:54:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3599/feathers/issues/3599"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:be8c6033-c093-1b68-8e59-981a8457a2de |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C61C:348185:26B3213:329B07A:69648492 |
| html-safe-nonce | 291ffe28403cd37e11c7c7f9bf5195f5b0625705087bdafafd35b862e0202739 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjFDOjM0ODE4NToyNkIzMjEzOjMyOUIwN0E6Njk2NDg0OTIiLCJ2aXNpdG9yX2lkIjoiNjY5NzE0MDkzMDE2Nzk5NzU4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0205ae8e7fa42910a9b2879ad6146a34fe3f3c06452ff8fe85531d849858d15d |
| hovercard-subject-tag | issue:3300621695 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feathersjs/feathers/3599/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a82c39583aec33a1ef7b532f5f6c994e4adb2c66eaaeaa3611d30939c1abe7e2/feathersjs/feathers/issues/3599 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a82c39583aec33a1ef7b532f5f6c994e4adb2c66eaaeaa3611d30939c1abe7e2/feathersjs/feathers/issues/3599 |
| og:image:alt | I stumbled on a bug in the npx feathers generate authentication command. I ran npx feathers generate authentication with the following options: Pay attention to the value for What is your authentic... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MartinElsaesser |
| hostname | github.com |
| expected-hostname | github.com |
| None | baa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5 |
| turbo-cache-control | no-preview |
| go-import | github.com/feathersjs/feathers git https://github.com/feathersjs/feathers.git |
| octolytics-dimension-user_id | 5321853 |
| octolytics-dimension-user_login | feathersjs |
| octolytics-dimension-repository_id | 2609642 |
| octolytics-dimension-repository_nwo | feathersjs/feathers |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2609642 |
| octolytics-dimension-repository_network_root_nwo | feathersjs/feathers |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 842eff1d11f899d02b6b3b98fa3ea4860e64b34e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width