I need to add an attribute to the user called activeSite which should be used in access control. However, it seems like by default, only user email and collection are stored in the auth object of the user.
How can I add an additional field to the auth user object?
@Sandro Wegmann I think you need to add the saveToJWT property for the field
To add fields to the auth token
Ah thanks a ton! I had such a property in mind but couldn’t find it anywhere 😄
Star
Discord
online
Get dedicated engineering support directly from the Payload team..