> For the complete documentation index, see [llms.txt](https://docs.tryterra.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tryterra.co/faq/help-topics/no-data/connections-expiring-disconnecting/authorization-expired-user-reconnect.md).

# How do I fix a Whoop 'authorization expired' error?

An 'Authorization expired, please reauthorize with the data provider' error means the **provider-side token is no longer valid**, usually because the end user revoked your app's access from the provider's portal/app, changed their password, or the provider invalidated or expired the token. Some providers, such as Oura, do not emit a deauth event when this happens.

To fix it, **have the user reconnect through your normal Terra connect flow / widget**. There is no need to deauthenticate first.

* Make sure they accept all requested permissions and complete the entire flow without interruption. Data flow then resumes automatically and missing data can be re-pulled. (Providers like Huawei have a rolling lookback window, so reconnecting sooner recovers more history.)
* For WHOOP specifically, also check the per-key user limit in the [WHOOP developer dashboard](https://docs.tryterra.co/health-and-fitness-api/whoop), as hitting it causes similar failures.
* Ensure your endpoint returns `2xx` to the `connection_error` webhooks Terra sends, since those are the signal a user needs to reauth.


---

# 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.tryterra.co/faq/help-topics/no-data/connections-expiring-disconnecting/authorization-expired-user-reconnect.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.
