Team, we would like to implement username/password...
# general
k
Team, we would like to implement username/password + social logins using managed supertokens. However our app is a react app packaged as a DESKTOP APP (e.g. Electron or Tauri based). Do we have any examples / documentations for this scenario?
k
Thanks @rp_st . I am trying to setup the above electron app from the gitbhub. And I am getting errors installing this app locally: -------------- An unhandled rejection has occurred inside Forge: Error: Expected plugin to either be a plugin instance or a { name, config } object but found @electron-forge/plugin-webpack,[object Object] -------------- any ideas on fixing the error? Googling did not help me. Thanks
r
what steps did you run to start it?
@nkshah2 can help here
n
Hey @Krishnamurthy We are fixing the example app, one of the sub dependency updates seems to have caused issues. In the meantime in the package json for the example app change the
plugins
entry to be this
Copy code
"plugins": [
                {
                    "name": "@electron-forge/plugin-webpack",
                    "config": {
                        "mainConfig": "./webpack.main.config.js",
                        "devContentSecurityPolicy": "style-src-elem *",
                        "renderer": {
                            "config": "./webpack.renderer.config.js",
                            "entryPoints": [
                                {
                                    "html": "./src/index.html",
                                    "js": "./src/renderer.tsx",
                                    "name": "main_window"
                                }
                            ]
                        },
                        "port": 3000
                    }
                }
            ]
r
hey @Krishnamurthy we have updated the electron app. Please redownload it. Thanks
k
Thanks team. I am rechecking now
@rp_st @nkshah2 - I was able to get past the previous error and the app is now coming up. The OTP signup with phone number is working fine. However, the OTP sign up with email is failing with the attached error. Note that I have set my gmail credentials in the .env file. Can you pls help?
n
That looks like an error from the google client. Make sure that the password you use in the environment variables is correct
k
Please note that .env file I use is, under "supertokens-auth-react\examples\with-thirdpartypasswordless-electron" folder. Is the folder location correct? And inside the .env file, I have the below entries (the password that I actually entered is confirmed to be correct). NODEMAILER_USER=kmurthyhegde@gmail.com NODEMAILER_PASSWORD=** Am I doing something wrong here? @nkshah2 . Thanks
n
k
Thanks @nkshah2 - I am unblocked now
n
Happy to help
8 Views