Auth with other framework (not react)
The documentation only shows example with react. How do I use auth in other frameworks (e.g svelte)
3 Replies
hey, someone made an unofficial svelte implementation here https://github.com/thomasballinger/draft-demo-convex-sveltekit but for auth you can implement any provider like clerk or auth.js or auth0 and I think for now you would have to built your own store to get the auth context
GitHub
GitHub - thomasballinger/draft-demo-convex-sveltekit
Contribute to thomasballinger/draft-demo-convex-sveltekit development by creating an account on GitHub.
but this should give you a starting place
I think @DerPenz has seen this one, it's a good point that it doesn't use auth. Generally auth in Convex means getting a JWT token (see our setup guides for https://docs.convex.dev/auth/auth0 and https://docs.convex.dev/auth/clerk, at least the first part about how to configure those services) and then once you have that token in the browser, calling
client.setAuth
with it. That will rerun any subscribed queries, now with auth.Convex Auth0 | Convex Developer Hub
Auth0 is an authentication platform providing login via