Exchange Fitbit OAuth Code
fitbit_exchange_codeExchange a Fitbit OAuth authorization code for tokens stored locally with 0600 permissions, ensuring tokens are never exposed.
Instructions
Exchange a Fitbit OAuth authorization code for local tokens. Tokens are stored locally with 0600 permissions and are never returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | OAuth authorization code, or a full redirect URL containing ?code=... | |
| response_format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| token_path | Yes | ||
| scope | No | ||
| expires_at | No | ||
| note | Yes |