Angular. Environment variable issuer must be set

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
I tried to put Client_Id and Issuer in environment.ts like this:

export const environment = {
  production: false,
  ISSUER: "",
  CLIENT_ID: "0oa48iu3oCyIWyO3I4x6"

It did not work.
Then I tried to put them in app.config.ts like this:

export default {
  oidc: {
    clientId: "0oa48iu3oCyIWyO3I4x6",
    issuer: "",
    redirectUri: 'http://localhost:8080/implicit/callback',
    scopes: ['openid', 'profile', 'email'],
    testing: {
      disableHttpsCheck: `${OKTA_TESTING_DISABLEHTTPSCHECK}`
  resourceServer: {
    messagesUrl: 'http://localhost:8000/api/messages',

It did not help either.
I still get the same error in terminal.
What do I do wrong? Could anybody help me?

Hi @TermenVox

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:

1 Like

Thank you very much! It works!

1 Like