Toubat
Toubat2mo ago

Auth in Convex + Electron

Hi team, I'm building an app in electron with convex as my backend. I wonder what are the best practices of building the authentication mechanism? For native app like electron, it cannot simply redirect to a different page using auth service like clerk since it cannot go back to previous browser window. Also, clerk seems broken in packaged electron app. What are the recommended auth providers in this case?
1 Reply
erquhart
erquhart2mo ago
Clerk explicitly states in their discord that Electron is not currently supported, but Auth0 works well with Convex and has a guide for this - I'd recommend giving that a shot: https://auth0.com/blog/securing-electron-applications-with-openid-connect-and-oauth-2/
Auth0 - Blog
Build and Secure an Electron App - OpenID, OAuth, Node.js, and Express
Learn how to secure an Electron application with OpenID Connect and OAuth 2.0. How to build an Electron app and a RESTful API with Node.j...

Did you find this page helpful?