Iceorcus
Iceorcus
TTCTheo's Typesafe Cult
Created by Iceorcus on 6/30/2024 in #questions
Is it a good idea to wrap a website in an Electron app window?
I've been trying to get a working beta of my moderation platform in an Electron app for a while now. Lately, I've been having issues regarding getting authentication to work within an Electron app using anywhere from React/Vite to Next or even Vue/Vite. I've done a ton of searches on Stack Overflow and Google and even looked at some tutorials on Auth0 (Okta) and on YouTube to try and gain a more deeper understanding of implementing authentication into Electron using a SPA framework. My authentication flow is not unique in the sense where I need to use a specific tool or protocol for it, seeing as I only need to authenticate users via Discord, but going through 10 testing codebases for one Electron app has slowed down my development significantly. I'm not looking for a spoon feed on exactly what stack or service to implement, more so some guidance on how I can overcome this issue, or a "hotfix" so I am able to use my authentication to test other code in my app like data fetching and whatnot. With that in mind, is using Electron as a "wrapper" of sorts the best way to go around this issue, and host the codebase as a website on something like Vercel? That way I have access to Server Components and data-fetching, and my authentication flow can also work - or is there some other path I can take to tackle this issue?
4 replies