# Invalid\_request: Invalid parameter: client\_id must be a string

**URL:** <https://community.auth0.com/t/invalid-request-invalid-parameter-client-id-must-be-a-string/75158>\
**Category:** Get Help\
**Tags:** api, login, auth0\
**Created:** [December 18, 2021, 1:57pm UTC](https://community.auth0.com/t/invalid-request-invalid-parameter-client-id-must-be-a-string/75158 "2021-12-18T13:57:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robliou01](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/robliou01/32/34126_2.png) [@robliou01](https://community.auth0.com/u/robliou01)\
**Post date:** [December 18, 2021, 1:57pm UTC](https://community.auth0.com/t/invalid-request-invalid-parameter-client-id-must-be-a-string/75158/1 "2021-12-18T13:57:22Z")

</div>

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]&currentTarget=[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](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=%5Bobject%20PointerEvent%5D&target=%5Bobject%20HTMLButtonElement%5D&currentTarget=%5Bobject%20HTMLButtonElement%5D&eventPhase=3&bubbles=true&cancelable=true&timeStamp=17317.200000001118&defaultPrevented=false&isTrusted=true&view=%5Bobject%20Window%5D&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

---

<div class="post-metadata">

**Author:** ![robliou01](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/robliou01/32/34126_2.png) [@robliou01](https://community.auth0.com/u/robliou01)\
**Post date:** [December 19, 2021, 1:19am UTC](https://community.auth0.com/t/invalid-request-invalid-parameter-client-id-must-be-a-string/75158/2 "2021-12-19T01:19:43Z")

</div>

Hello, I’ve been able to resolve the issue.

I was entering the client ID as “clientID”, when it should be ‘clientId.’

One uncapitalized letter…

Yikes!!!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 20, 2021, 1:12pm UTC](https://community.auth0.com/t/invalid-request-invalid-parameter-client-id-must-be-a-string/75158/3 "2021-12-20T13:12:52Z")

</div>

Wooohooo perfect to hear that!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 22, 2021, 3:23pm UTC](https://community.auth0.com/t/invalid-request-invalid-parameter-client-id-must-be-a-string/75158/4 "2021-12-22T15:23:34Z")

</div>


