# Why Am I Receiving The 'Invalid key in subscription auth data' Error?

Typically when we see this error and you're sure that your client key is correct (which the error message suggests it is), it is likely the result of using the wrong credentials on your server. The key / secret / app\_id on the authentication server must match the key on the client.

To resolve this error you can you check:

1\) The credentials haven't been hardcoded somewhere (even though the correct credentials are being set through a variable/configuration)\
2\) Check the link for your auth endpoint in your client code\
3\) Try logging the APP\_ID and APP\_KEY in your code to check the variables are being picked up correctly.

{% hint style="info" %}
Still have questions? Please reach out to our Support team by visiting [this page](https://messagebird.com/support-center/Pusher-request-new).
{% endhint %}
