Skip to content

[Bug]: Cannot create users when disableDefaultPayloadAuth: true #103

@Syth-1

Description

@Syth-1

Description

When I set disableDefaultPayloadAuth to true in the payload-auth plugin configuration, I’m unable to create any users. The operation either silently fails or does not persist the new user in the database. Everything works correctly when disableDefaultPayloadAuth is set to false.

Steps To Reproduce

export const betterAuthPluginOptions: BetterAuthPluginOptions = {
  disableDefaultPayloadAuth: true,
  // other config...
}

(I am using a seperate collection for the admin panel named admin)

Expected Behavior

to create new users!

Environment

payload-auth: 1.6.5
payload-version: 3.62.0
node version: v23.11.0
database: postgres (docker latest image as of writing)
os: windows

Reproduction URL (optional)

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions