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/",
};