# Invalid client id

**URL:** <https://community.auth0.com/t/invalid-client-id/92411>\
**Category:** Get Help\
**Created:** [October 14, 2022, 8:25am UTC](https://community.auth0.com/t/invalid-client-id/92411 "2022-10-14T08:25:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremy5](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeremy5/32/34215_2.png) [@jeremy5](https://community.auth0.com/u/jeremy5)\
**Post date:** [October 14, 2022, 8:25am UTC](https://community.auth0.com/t/invalid-client-id/92411/1 "2022-10-14T08:25:42Z")

</div>

HI all - I am having an issue calling the following using the PHP SDK

PLease note, that all properties are using the correct values (I have removed them for security purposes). I have had them triple checked, and also used the downloadable sample which automatically prefills them too.

The response I am getting is that it is an invalid client\_id (see response at bottom) - any assistance would be helpful

$auth0 = new \Auth0\SDK\Auth0([  
‘domain’ =\> 'DOMAIN\_NAME,  
‘clientId’ =\> ‘Client ID from application’,  
‘clientSecret’ =\> ‘Client secret from application’,  
‘cookieSecret’ =\> ‘random string’  
]);

The response coming back is -

```auto
Auth0\SDK\Exception\CoreException: Invalid client_id in /home/glitterboy/app/vendor/auth0/auth0-php/src/Auth0.php:268 

```

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 24, 2022, 7:41pm UTC](https://community.auth0.com/t/invalid-client-id/92411/3 "2022-10-24T19:41:03Z")

</div>

Hi @jeremy5,

Welcome to the Auth0 Community!

I understand you have experienced issues with the invalid client id error when using the Auth0 PHP SDK.

After my tests, I could not reproduce the same issue. Instead, I was able to successfully launch the app without any errors when using the [Auth0 PHP Quickstart](https://auth0.com/docs/quickstart/webapp/php/interactive).

In this case, could you try using the Auth0 PHP Quickstart guide and see if that resolves your issue?

I am looking forward to your response.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 7, 2022, 7:41pm UTC](https://community.auth0.com/t/invalid-client-id/92411/4 "2022-11-07T19:41:53Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
