Github App authentication not showing login

  github-api, javascript, node.js, rest

I need to have a frontend that can interact with github repos, so i set up a Github App, then my node middleware calls the /authenticate endpoint

 const result = await axios.get(``, {
      params: {
        redirect_uri: 'http://localhost:3010/',

This is triggered as soon as a user on the frontend gets to a specific page.

The call itself returns OK 200, and i can see in the response data there’s the html code for the Github authentication popup… but of course i cannot just inject it locally in the DOM, i would expect the popup to open automatically so the user can login and then receive the token and be redirected to the redirect_uri.

Any idea what i’m doing wrong?

Source: Ask Javascript Questions