payload
payload copied to clipboard
Missing payload.auth from documentation
Documentation Issue
Local API does not document the payload.auth
method.
https://payloadcms.com/docs/local-api/overview
This was brought to my attention when helping someone with custom components. They were able to figure out how to get the current user with the useAuth
hook in the client, but were unaware of how to get the current user on the server. Apparently they had been trying to figure it out all day, with no luck. Thus, while it is not necessary to document everything right now, I do think this is a common scenario where people will need this piece of information now.