Skip to content

TypeScript complains if signUp endpoint gets disabled #967

@root5427

Description

@root5427

Environment



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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug that needs to be resolvedpendingAn issue waiting for triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions