SIGN IN SIGN UP
payloadcms / payload UNCLAIMED

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.

0 0 16 TypeScript

fix: getFieldsToSign crashes when user missing group/tab fields (#15775)

### What

Fix crash in JWT generation when user documents are missing group or tab
fields

### Why

When a user document was created before group/tab fields were added to
the schema, logging in would crash with "Cannot read properties of
undefined" because `getFieldsToSign` tried to traverse into undefined
fields.

### How

Added nullish coalescing (`?? {}`) to default missing group/tab data to
empty objects, consistent with how `afterRead/promise.ts` handles this
case.

Fixes #15734
P
Patrik committed
9f0c101803350f01fe93498cd4eba2ea2751ee32
Parent: fd81fd5
Committed by GitHub <noreply@github.com> on 2/27/2026, 4:35:16 PM