payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
24.69k stars 1.56k forks source link

User collection with `auth: true` not receiving defaults #6

Closed denolfe closed 3 years ago

denolfe commented 3 years ago

Expected Behavior

Able to login successfully when auth: true on admin user collection.

Current Behavior

A login attempt will throw error "expiresIn" should be a number of seconds or string representation of timespan

Possible Solution

Collection config sanitization is not being handled properly when set as auth: true. This works properly if auth is set to any object.

Steps to Reproduce

  1. Create a Users collection with auth: true
  2. Attempt to log in
denolfe commented 3 years ago

Fixed by c3037118133a242769dfa4a31914e8e61068edcf

github-actions[bot] commented 1 month ago

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.