-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing payload.auth from documentation #9631
Comments
what you can do in such case is to check the sample projects. There is a lot of code which is not documented. |
I've been aware of the method for quite a long time. Its just clear to me that people aren't finding it and documenting it would help with that. Many features aren't documented, I agree. I consider this to be a very core necessity, hence the PR. |
🚀 This is included in version v3.3.0 |
This issue has been automatically locked. |
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.The text was updated successfully, but these errors were encountered: