Login with Github

Thank you for the feedback

If I understood the docs correctly, I would need to change the second request I’m making to /oauth/token to:

const authenticateOptions = {
  method: 'POST',
  data: {
    grant_type: 'client_credentials',
    client_id: authorizationOptions.client,
    client_secret: authorizationOptions.secret,
    audience: sprintf( 'https://%s/api/v2/', authorizationOptions.domain )
  },
  headers: {
    'content-type': 'application/json'
  }
};

request.load( sprintf( 'https://%s/oauth/token/', authorizationOptions.domain ), authenticateOptions ).done( ( response ) => {

    console.log( response );

  });

In order to get something like — example from API Management Test View

{
  "access_token": "BIG_STRING_WITH_AUTH0_TOKEN",
  "token_type": "Bearer"
}

This “big string”, in fact, is much bigger than the token I was getting before

And then I would send this token to Github. Correct?

If so, I can’t, because from my development environment (http://localhost:1313), I’m getting the very same CORS impediment I was getting straight from Github when I tried to do everything without Auth0 and, therefore, I can’t get such token to use.

Worth mentioning that in this link you passed, once again, examples are only from React/Angular which, as I’m saying from the start, I am NOT using and I won’t use because that not only would require me to learn something entirely new I wouldn’t use anywhere else but would also ditch the use of Github Pages as I’m pretty sure NodeJS isn’t available on it.