With useAPIKey enabled in an user collection, the apiKey and enableAPIKey fields are always returned from the REST API.
Is there any way to config to hide the these fields by default?
Found an outstanding issue on this on roadmap
https://github.com/payloadcms/payload/discussions/4400You can use the afterRead hook on the collection to strip it out. It is “interesting” this work around is needed haha
Thanks, I'll do that for now!
I agree
Star
Discord
online
Get dedicated engineering support directly from the Payload team.