I\'ve made two javascript apps in Sharepoint online framework like this:
const msalConfig = { auth: { clientId: "fadb7e2c-....",