Skip to content

Conversation

bytemuck
Copy link

@bytemuck bytemuck commented Jul 23, 2025

fixes #140

Adds user.claims on control access and hooks. The claims are updated every time the user is authenticated, which happen when the token is invalidated.

@bytemuck bytemuck changed the title expose claims expose claims to hooks and access control Jul 23, 2025
@bytemuck
Copy link
Author

bytemuck commented Jul 23, 2025

Wait before merging, looks like it's not working as expected with another project of mine?

I created a PR so you can see how it goes and stop me if anything.

@bytemuck
Copy link
Author

It was working, only I had to update my version of Payload.
It will work from 3.44.0 and onward: https://github.com/payloadcms/payload/releases/tag/v3.44.0,we will need to add this to the docs.

@bytemuck
Copy link
Author

Okay! It's ready to merge whenever!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

expose claims to client
1 participant