Skip to content

Conversation

@AaronClaes
Copy link
Contributor

What?

I added a visibility toggle to the API key field.

Key hidden:
image

Key visible:
image

Why?

When visiting a collection item that has an API key enabled, the API key is exposed and openly visible.
This can cause unexpected leakage of the key.

Current field:
image

How?

I added a showKey state to the component, which can be toggled.
The toggle is placed next to the input field, following the same UX/UI pattern as the "Add new" button for the relationship field.

@JarrodMFlesch JarrodMFlesch enabled auto-merge (squash) July 11, 2025 16:50
@JarrodMFlesch JarrodMFlesch merged commit 8a3b97c into payloadcms:main Jul 11, 2025
156 of 158 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants