Trying to use SuperTokens in an Electron app. Have taken a look at the example on Github and have im...
d
Trying to use SuperTokens in an Electron app. Have taken a look at the example on Github and have implemented them into my own project. Trying to log in using Google and it is not directing my as it normally would on the browser.
r
hey @djarran
so you click on the button, and then nothing happens after that? Can i see the browser console?
d
sure
this is in the electron app ofc
and this is what it would look like in chrome or firefox
r
so you are not seeing google's UI to login at all?
d
I am in a normal browser. But in the electron app, it doesn't redirect
r
in normal browser it does?
d
yes, it does redirect and I can login successfully in a normal browser
r
hmmm.
Maybe some permission issue with how you have made the electron app? Maybe your OS blocking it?
have you tried our example app?
d
ive had a look through it and implemented some of the things in there
I managed to get it working again, but only when running electron in dev, using BrowserRouter
Building it, I need to use HashRouter, but then there's an issue with the social login as said in the example app repo
I'll try the two routes given and see if it works
r
cool. For hash router, you will need to change how the windowHandler stuff works to translate between hash route paths vs normal paths (as understood by the browser)
d
so I'll need to change the methods in windowHandler.ts? or is it a drop in solution?
r
you may need to change it
Im not sure
our example app uses the hashrouter as well
so it should just work
d
IT'S WORKING!!!!!
🙏
thank you
r
Ok nice!
7 Views