N8N Desktop username / password for connecting teams

So when attempting to connect teams for N8N desktop the callback url for eg :

https://mean-bulldog-xxxxxxxx.hooks.n8n.cloud/rest/oauth2-credential/callback

It asks for a username and password which is usually setup in the env for docker.

Looking into the app files there is a defaultEnv.js which generates a random username and password when the app is launched.

I couldnt see anywhere in the app that showed you the username and password so I edited the runElectron.js so it would launch a url when you click on the Username option in the help menu

 const rawHelpSubitems = {
    Username:`https://${process.env.N8N_BASIC_AUTH_USER} -- ${process.env.N8N_BASIC_AUTH_PASSWORD}`,	
    Documentation: "https://docs.n8n.io/",
    Forum: "https://community.n8n.io/",
    Workflows: "https://n8n.io/workflows/",
  };

If you go to your users Home directory and view the hidden files there will be an n8n folder, In there you will find a file called n8n-desktop.env this will contain the info you are looking for.

If you are on Windows you can just pop %HOMEPATH%\.n8n into the file explorer.

4 Likes

Nice idea. Will consider this in the next release.

1 Like

Thanks, it would be better longterm to be able to view this within the app

1 Like