Is there a way to pass the auth context in workpool queues?
Hey all! 👋🏽
We are using the @convex-dev/workpool extension and using a Clerk Auth setup to populate the user identity in all function requests.
We are currently trying to find an easy way to pass the auth context / user identity to the function that is triggered when using
enqueueAction
. Is there any recommended way to do this or should we just use internalAction
and then pass the user id and other information as arguments?3 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
yep, the latter! no need to re-run any JWT stuff
just use
internal*
and pass the UserIdentity
or whatever directly
you're in a trusted environment if you're using internal Q/M/AAlright! Thanks for the help Jamie! 🙏🏽