> For the complete documentation index, see [llms.txt](https://docs.bird.com/pusher/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bird.com/pusher/channels/channels/troubleshooting/why-am-i-receiving-the-invalid-key-in-subscription-auth-data-error.md).

# 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bird.com/pusher/channels/channels/troubleshooting/why-am-i-receiving-the-invalid-key-in-subscription-auth-data-error.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
