madhanganesh / taskpad

app to enter your daily tasks and tag them
https://taskpad-228402.appspot.com/
162 stars 52 forks source link

Server does not pass auth0 data to React #18

Open leoromanovsky opened 4 years ago

leoromanovsky commented 4 years ago

https://github.com/madhanganesh/taskpad/blob/95c65f9bad034453f7be77151ab3903a81751c1f/ui/public/index.html#L32-L35

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?