Skip to content

auth.disableLocalStrategy should accept false as a value #9197

Closed
@tyteen4a03

Description

@tyteen4a03

Describe the Bug

The current type definitions do not accept disableLocalStrategy as false. This breaks scenarios such as disableLocalStrategy: process.env.NODE_ENV === 'production'.

Link to the code that reproduces this issue

N/A

Reproduction Steps

Specify false as a value for disableLocalStrategy.

Which area(s) are affected? (Select all that apply)

area: core

Environment Info

Node.js v22.11.0

Binaries:
  Node: 22.11.0
  npm: 10.9.0
  Yarn: N/A
  pnpm: 9.12.1
Relevant Packages:
  payload: 3.0.0-beta.130
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions