payload icon indicating copy to clipboard operation
payload copied to clipboard

Missing payload.auth from documentation

Open HarleySalas opened this issue 2 months ago • 0 comments

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.

HarleySalas avatar Nov 30 '24 17:11 HarleySalas