Skip to content

User collection with auth: true not receiving defaults #6

@denolfe

Description

@denolfe

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions