Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript complains if signUp endpoint gets disabled #967

Open
root5427 opened this issue Dec 23, 2024 · 0 comments
Open

TypeScript complains if signUp endpoint gets disabled #967

root5427 opened this issue Dec 23, 2024 · 0 comments
Labels
bug A bug that needs to be resolved pending An issue waiting for triage

Comments

@root5427
Copy link
Contributor

Environment


  • Operating System: Windows_NT
  • Node Version: v22.11.0
  • Nuxt Version: 3.14.1592
  • CLI Version: 3.17.1
  • Nitro Version: 2.10.4
  • Package Manager: yarn@4.0.1
  • Builder: -
  • User Config: default
  • Runtime Modules: @primevue/nuxt-module@4.2.5, @nuxt/eslint@0.7.4, @nuxt/fonts@0.10.3, @sidebase/nuxt-auth@0.10.0
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-ti8md3c4?file=nuxt.config.ts%3AL11

Describe the bug

In the documentation it says that signUp endpoint can be disabled by setting it to false, as shown in the example:

image

I get type error, when signUp endpoint is set to false in local provider options.

Error text:

Type 'false' has no properties in common with type '{ path?: string | undefined; method?: "head" | "get" | "patch" | "post" | "put" | "delete" | "connect" | "options" | "trace" | undefined; }'.ts(2559)

I assume that this happens because of this line of code:

signUp?: { path?: string, method?: RouterMethod }

Additional context

No response

Logs

No response

@root5427 root5427 added bug A bug that needs to be resolved pending An issue waiting for triage labels Dec 23, 2024
zoey-kaiser added a commit that referenced this issue Dec 24, 2024
Co-authored-by: Zoey <zoeykaiser8@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug that needs to be resolved pending An issue waiting for triage
Projects
None yet
Development

No branches or pull requests

1 participant