sandeep34
sandeep343mo ago

Using clerk + convex auth along with Tauri app (Login via Browser)

I am using Clerk Convex Integration https://clerk.com/docs/integrations/databases/convex Now, I am looking for workflows where I can login via Browser into Tauri webapp (Unbundled). I tried using Clerk as oAuth provider, where I can render a button my webpp "Login via browser" This navigates to browser for Authentication (which opens my clerk sign in / sign up page) In return I get code and state, which I can use for exchanging with Token via Backend I am comminicating code and state via Deep linking. But here is the problem I am facing. Even after exchanging Code for Token, I am unable to set the session in the Tauri app. Clerk's setActive method is not seems to be working. Probably because Convex is working along with Clerk. So how to manage session via Convex. I tried clerk.setAuth with a fetcher function, but didn't seemed to work as well. Any recommendations, or any other alternative workflows?
Integrations: Integrate Convex with Clerk
Learn how to integrate Clerk into your Convex application.
3 Replies
Convex Bot
Convex Bot3mo ago
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!
mikeysee
mikeysee3mo ago
hey @sandeep34 sounds like you have an interesting application there and I suspect a Tauri or Electron + auth use-case is fairly common so we should have an answer for that. I unfortunately dont know enough about auth to know for sure. Maybe @erquhart might know?
erquhart
erquhart3mo ago
I haven't done anything with Tauri, but it's also not clear that Convex is a part of the issue - might be worth checking in the Clerk discord

Did you find this page helpful?