Hello,
I’m a new user and attempting to integrate Auth0 into my app, which is hosted on my local computer.
I believe I have followed the basic directions correctly. Using the Auth0 instructions, I have set up a button on the ‘login’ page of my app which, upon clicking, redirects to the Auth0 login page. Here, the login procedures should be handed over to Auth0. However, everytime I click the button, I instead get an error page and receive the following error:
"invalid_request: Invalid parameter: client_id must be a string”
I have checked and re-checked that I correctly input my client-id and Domain variables into my index.js file. It was copy-pasted directly from my Auth0 screen. I believe I have confirmed that it has been correctly input, because the URL that is sent when the button is clicked as follows (added a few X’s here in the middle of my clientID for safety purposes):
https://dev-7-8i89hb.us.auth0.com/authorize?clientID=stYoaCVnntAXXXXIdXnxX4riYXRnF&redirect_uri=http%3A%2F%2Flocalhost%3A4000%2Flogin%2Fredirect&_reactName=onClick&_targetInst=null&type=click&nativeEvent=[object%20PointerEvent]&target=[object%20HTMLButtonElement]¤tTarget=[object%20HTMLButtonElement]&eventPhase=3&bubbles=true&cancelable=true&timeStamp=17317.200000001118&defaultPrevented=false&isTrusted=true&view=[object%20Window]&detail=1&screenX=-905&screenY=332&clientX=695&clientY=229&pageX=695&pageY=229&ctrlKey=false&shiftKey=false&altKey=false&metaKey=false&getModifierState=function%20modifierStateGetter(keyArg)%20{ %20%20%20%20%20%20var%20syntheticEvent%20%3D%20this%3B %20%20%20%20%20%20var%20nativeEvent%20%3D%20syntheticEvent.nativeEvent%3B %20%20%20%20%20%20if%20(nativeEvent.getModifierState)%20{ %20%20%20%20%20%20%20%20return%20nativeEvent.getModifierState(keyArg)%3B %20%20%20%20%20%20} %20%20%20%20%20%20var%20keyProp%20%3D%20modifierKeyToProp[keyArg]%3B %20%20%20%20%20%20return%20keyProp%20%3F%20!!nativeEvent%5BkeyProp%5D%20%3A%20false%3B%0A%20%20%20%20%7D&button=0&buttons=0&relatedTarget=null&movementX=0&movementY=0&isDefaultPrevented=function%20functionThatReturnsFalse()%20%7B%0A%20%20%20%20%20%20return%20false%3B%0A%20%20%20%20%7D&isPropagationStopped=function%20functionThatReturnsFalse()%20%7B%0A%20%20%20%20%20%20return%20false%3B%0A%20%20%20%20%7D&scope=openid%20profile%20email&response_type=code&response_mode=query&state=b0JwbTBPRkFIWDVOMG1Hb0QzMS5CMTJaVzVGb01ZVUgzVk9yZjlvM0J2eQ%3D%3D&nonce=M3hBY2FEWHJNSkRHYnNpRnlvc2xzRnphY1VULTlfOVJaeS1HMlkxbFo2WA%3D%3D&code_challenge=5IFme86v8SaCrmK6BovzsAiUh7tpFkdqecnjfO8t8JM&code_challenge_method=S256&auth0Client=eyJuYW1lIjoiYXV0aDAtcmVhY3QiLCJ2ZXJzaW9uIjoiMS44LjAifQ%3D%3D
It would appear from the URL that the Client-ID is correctly formatted when it is being sent, so what could be the reason for me receiving this error?
Thank you in advance,
Rob