auth - vanilla js app
Hi. I’m using vanilla js but realized that convex auth mainly support apps with the react framework. It was suggested to me to check out Clerk Auth. I’m just a bit unclear on whether it’s feasible for me to use Clerk auth in my app and successfully link its functionality and user validation back to Convex with my vanilla js app.
3 Replies
Sure this is doable. You'll want to follow the Clerk + Convex guide on the Convex website but instead of using React, use the ConvexClient imported from "convex/browser". https://docs.convex.dev/client/javascript#convex-client
JavaScript | Convex Developer Hub
Convex applications can be accessed from Node.js or any JavaScript runtime that
To work with Clerk, you'll get a JWT from Clerk and then call setAuth() on the client with that token.
Thanks much Tom, but my team and I eventually converted our app to React