Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add payload.auth to local api (#9632)
### What? https://payloadcms.com/docs does not document the `payload.auth` feature. ### Why? With custom components, there is no explanation as to how you can get the current user on the server side. It is also something useful to know for many other scenarios. A Discord user even mentioned today, that they spent quite some time, trying to figure out how to get the current user, while on the server. While I don't think it's the cleanest "place" to document it, I think its what makes the most sense, given the current state of the documentation. I tried to follow the existing format as close as possible. The comments are longer, but I feel the information is absolutely necessary to provide. Confirmed that formatting works as expected and there are no errors parsing the addition: ![image](https://github.com/user-attachments/assets/c8e203cd-3c9c-482c-850b-2a16f3958344) Fixes #9631
- Loading branch information