How do you guys manage auth with NextJS?
Hi, I’m currently dealing with an issue where auth is very inconsistent. I have every complement that calls a convex function inside a <Authenticated> component, but often the requests will fail since on the server side I am checking auth with getUserIdentity, and it seems like the JWT isn’t being passed on. I’m using WorkOS.
Have you guys dealt with similar issues where auth seems to fail inconsistently?
2 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!
If Authenticated component children are rendered, functions will be called with an auth token. Can you share relevant code?
You can also check the
/sync websocket messages in your network panel to see authentication messages and responses