Skip to content

Server does not pass auth0 data to React #18

@leoromanovsky

Description

@leoromanovsky

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions