Kerisha
Kerisha5mo ago

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
ballingt
ballingt5mo ago
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
ballingt
ballingt5mo ago
To work with Clerk, you'll get a JWT from Clerk and then call setAuth() on the client with that token.
Kerisha
KerishaOP4mo ago
Thanks much Tom, but my team and I eventually converted our app to React

Did you find this page helpful?