Integrating Convex auth into a sveltekit application?
Hey all, has anyone managed to get convex auth working by default or with https://docs.logto.io/ or https://svelte.dev/docs/cli/lucia
Logto introduction | Logto docs
Quickly launch your identity and access management system by integrating Logto. Enjoy authentication, authorization, and multi-tenant management all in one.
lucia • Docs • Svelte
lucia • Svelte documentation
6 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!
I've created a Svelte adapter for Convex Auth that I use in my own SvelteKit app https://github.com/mmailaender/convex-auth-svelte @beerman
Haven't used it yet in a plain Svelte app, so this is still a TODO. Feel free to give it a shot and tell me how it goes 🙂
GitHub
GitHub - mmailaender/convex-auth-svelte
Contribute to mmailaender/convex-auth-svelte development by creating an account on GitHub.
Hi Micha, Update to my post. I did get it working. I just can't seem to get it working from firebase. As soon as I cloned my app and opened it in locally, I was able to do auth with Github, which is the only provider I had set up. I really appreciate you putting this library together.
Hi @Nathan M, great to hear it helps you!
Are you seeing any error on firebase? Have you configured the SITE_URL etc. to work with Firebase? If you have something for me to reproduce it, I can check what's the problem.
Thank you my friend
Hi Micha, Convex gives me a 403 error when I use Firebase Studio as my dev environment. It works fine when I am using VS Code on my local machine. I set the SITE_URL to the virtual machine address, and tried some variations, but it looks like Firebase Studio uses the machine url as a referrer, which causes the request to be rejected by the Convex endpoint. I still haven't solved that issue, but when I do, I will definitely post the solution on here. Thank you again.