Guilherme Castro
Guilherme Castro
CCConvex Community
Created by shrigma male on 1/10/2025 in #general
Convex Auth + OAuth + Tauri
I'm working on this; The auth story for tauri is quite barebones in general. You can't use the standard convex auth context provider as it uses cookies and so on, so you must handle the entire flow on the rust side, including storing the tokens and providing it to the frontend. You can do that with a custom auth provider, there is a section in the docs. I've only managed to make it work with open id connect from auth0 as that's the correct flow for native apps from my understanding (including pkce challenge, validation and so on) at the end you get a token which is what will work with Convex. I haven't yet signed / notarized the app nor tested in production, and I'm sure there are several holes still, but in principle it's possible. But so far I think it needs OIDC flows specifically
9 replies