Continue Discussion 39 replies
October 2019

konrad.sopala Community Engineer

Let us know if you have any questions and we’ll make sure to answer them or relay them to the article author!

November 2019

patarapolw

Do I need .env? How do I release the application? Will .env be visible?`

1 reply
November 2019

konrad.sopala Community Engineer

Hey there @patarapolw!

I just pinged the article author so he should look at your question once he’s online!

1 reply
November 2019 ▶ konrad.sopala

coderonfleek

Thanks for calling my attention to this @konrad.sopala

November 2019 ▶ patarapolw

coderonfleek

Hi @patarapolw. If you’re are distributing your app freely on Github, you will need you ignore your .env file in .gitignore and add iinstructions to your Readme for others to setup the .env file.
However, if you’re distributing it to end users to use on their OS platforms, your .env file will not be visible as your app will be distributed as installables on their respective platforms (Windows, OSX, etc). To learn more about distributing Electron apps you can visit Application Packaging | Electron

November 2019

konrad.sopala Community Engineer

Thanks for sharing that knowledge here @coderonfleek!

January 2020

dimonic

I can’t find the Todos database backend code.

January 2020

konrad.sopala Community Engineer

Let me ping the article author about that!

February 2020

gvisoc

The ToDos component code is incomplete as it doesn’t map the todo.title.

Instead of:

<li v-for="todo in todos" :key="todo.id"></li>

It should be:

<li v-for="todo in todos" :key="todo.id">{{ todo.title }}</li>
March 2020

joanne

Hi…I’ new in this community, I have a question, I have followed exactly as the tutorial Electron Tutorial: Building Modern Desktop Apps with Vue.js But I get a never ending error in the electron console,
Not allowed to load local resource: file:///callback?code=UHPe1fzBHXU07VCS

I have set Allowed CallbackURLs as file:///callback but I still get that error. I’m not sure if the error related to this. Do I need to put file:///callback to the Allowed Web Origins and Allowed Origins (CORS) too?

March 2020

konrad.sopala Community Engineer

Hey there!

I’m sure @kapehe will cover that once she’s online!

April 2020

ziegler.philipp79

Hi,
I have the following folder structure:

to-do-desktop:
|
|-.electron-vue
|-build
|-dist
|-node_modules
|-src → Here is the sourcecode and the index.ejs
|-static → Here are the images and index.css
|-.babelrc
|-.env
|-.eslintignore
|-.gitignore
|-.travis.yml
|-appveyor.yml
|-package
|-package-lock
|-README.md
|-vue.config

My question is now, where do I have to put the images, the index.css and the fonts.
When I run the following command, everything works fine.
npm run dev
But when I build it with this command, these files couldnt be found.
npm run build

What path should I use in my .vue-Files. The path in index.ejs is as follows:
“static/index.css”

Should I change something in the config-files?

Thank you for your help.
Philipp Ziegler

April 2020

ziegler.philipp79

I know my mistake. I installed the Vue i18n-Package and the images
werent shown when I build the application. My question is now,
what Language package is supported to use with this framework?
These are the websites which I tried:

and

April 2020

konrad.sopala Community Engineer

Just pinged the article author to have a look at it for you!

April 2020

ziegler.philipp79

I solved it.
I have set the router mode to history. This causes the application not to load the static images.

1 reply
April 2020 ▶ ziegler.philipp79

konrad.sopala Community Engineer

Thanks a lot for sharing with the rest of community!

April 2020

devopsprosiva

Hi @konrad.sopala,

I just tried all the steps in this tutorial with electron 8.2.3. After I login to auth0, I just see a blank page. There are no errors or messages in the console. Could you please check if I should be doing any additional steps for electron 8.2.3?

Thanks,
Siva

1 reply
April 2020

Kieran

@joanne hey, did you get an answer to your problem? I’m getting the same issue.

Not allowed to load local resource: file:///callback?code=XXXX

1 reply
April 2020 ▶ devopsprosiva

dan-auth0 Auth0 Employee

Hello, Siva. Welcome to our Auth0 Community :slight_smile: Thank you for reading the blog post. As of now, this guidance only works with Electron 6. There were some changes made to Electron 7+ that prevent Auth0 from integrating correctly when following our current guidance. We are in the process of revising our guidance for Electron to support 7+ but also to be more resilient to change.

Please stay tuned. As soon as new guidance is up, I’ll be updating our different Electron-related channels with links to the new resources. I appreciate your time and understanding on this :pray:

April 2020 ▶ Kieran

dan-auth0 Auth0 Employee

Kieran, thank you for following this tutorial and for joining our Auth0 Community. We’ll get in touch with the author to take a look at these outstanding questions :pray: I apologize for the delays to address that concern.

One question, please: what version of Electron are you using? We are currently having issues with Electron 7+ and the guidance that we have provided is not working. We are in the process of updating it. You may see more details on this in my reply to Siva above :slight_smile:

April 2020

alexo382

Hi everyone,

I followed this tutorial from the official blog to add authentication to my Electron + Vue app and it works fine, but now I’m facing some issues with loading the callback file/URL in Electron when updating from v6 to the latest version.

Are there risks when handling the entire authentication flow on the Vue side in Electron with the @auth0/auth0-spa-js plugin as described here? It’s certainly easier to do this but I’m not so well versed in web security as many people are around here.

Thanks!

1 reply
April 2020

konrad.sopala Community Engineer

Hey there! Someone from the blog articles team should reach out to you soon regarding that!

April 2020 ▶ alexo382

dan-auth0 Auth0 Employee

Welcome to our Auth0 Community, Alex. We are in the process of developing updated guidance for Electron. As now, the guidance that we have published does not work for version 7 and 8 of Electron, I apologize for the inconvenience.

Be assured that this issue has been escalated internally for us to take action. I don’t have an ETA yet, but there’s someone already making process on the area. Please stay tuned :pray: We want to provide you the best set of practices to help your app succeed securely. :muscle:

1 reply
April 2020 ▶ dan-auth0

alexo382

Thanks a lot, @dan-auth0. Can’t wait for the new guidance!

April 2020

konrad.sopala Community Engineer

We’ll let you know once it’s there!