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
23.58k stars 1.5k forks source link

user is undefined after first user creation #8353

Closed r1tsuu closed 1 week ago

r1tsuu commented 1 week ago

Link to reproduction

No response

Environment Info

Payload: 108
Next: 160
Node: 20

Describe the Bug

User is undefined from useAuth() after first user creation.

https://github.com/user-attachments/assets/bce25027-55fb-4284-830d-466bda849b39

Reproduction Steps

Create a first user, click "create" in any collection - see the error.

Adapters and Plugins

No response

r1tsuu commented 1 week ago

PR: https://github.com/payloadcms/payload/pull/8360

github-actions[bot] commented 1 week ago

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

github-actions[bot] commented 4 days ago

🚀 This is included in version v3.0.0-beta.109