Hi all! I am studying samples-js-angular and always get the same error: An unhandled exception occurred: Environment variable ISSUER must be set. See README.md
I tried to put Client_Id and Issuer inenvironment.ts like this:
Can you please add a file called testenv (without any extensions) in the root directory (not inside /custom-login or /okta-hosted-login) with the following values:
Check if your testnv file is in the correct folder.
For example, if your angular components are in the following route: D:\Programming\mega_project\okta_test\src\app
then your package.json file lays in okta_test folder and testnv file must be in the mega_project folder.
If you doubt - put testnv in all folders
Or just use workaround - in app.config.ts remove the following string const { CLIENT_ID, ISSUER, OKTA_TESTING_DISABLEHTTPSCHECK } = process.env;
and hardcode your client id and issuer in the oidc object. Something like this: