patochemP
Convex Community3y ago
24 replies
patochem

How do I get a jwtToken from outside React

My Nextjs app is configured with convex using Clerk as an Auth provider, exactly as described in the Documentation. Everything works perfect client side, inside the React scope.

However, I'd like to use a state manager outside the React scope to manage all interactions with the convex database.
From the documentation, I guess I can do that with a ConvexClient. But then, how can I retrieve a valid jwt to authenticate those calls?
Was this page helpful?