madhanganesh/taskpad

Server does not pass auth0 data to React

leoromanovsky opened this issue · 0 comments

window.AUTH0_DOMAIN = {{.AUTH0_DOMAIN}};
window.AUTH0_CLIENT_ID = {{.AUTH0_CLIENT_ID}};
window.AUTH0_AUDIENCE = {{.AUTH0_AUDIENCE}};
window.AUTH0_CALLBACK = {{.AUTH0_CALLBACK}};

Since this is a static HTML file, not a gin tmpl the executed javascript code is:

      window.AUTH0_DOMAIN = {{ .AUTH0_DOMAIN }};
      window.AUTH0_CLIENT_ID = {{ .AUTH0_CLIENT_ID }};
      window.AUTH0_AUDIENCE = {{ .AUTH0_AUDIENCE }};
      window.AUTH0_CALLBACK = {{ .AUTH0_CALLBACK }};

Have you been able to figure out how to pass data from gin to React?