Repository navigation
Add a WHOOP template generated from WHOOP's OpenAPI description - #344
Merged
Merged
Conversation
tnkuehne
force-pushed
the
feat/whoop-template
branch
from
November 23, 2026 14:40
ac87c6a to
7a75eec
Compare
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | b530656 | Nov 23 2026, 03:06 PM |
tnkuehne
force-pushed
the
feat/strava-template
branch
from
November 23, 2026 15:03
934c09c to
34cecf6
Compare
The WHOOP template offers 12 methods for the connected member's profile and body measurements, cycles with their recovery and sleep, and recoveries, sleeps and workouts, plus revokeAccess, which ends the app's access and asks as a deletion. WHOOP's trusted-partner operations are not offered. Each organization connects through its own WHOOP developer app. Better Auth has no WHOOP provider, so the template uses its generic OAuth plugin with PKCE, reads the member's identity from the basic profile, and names the offline scope when refreshing, as WHOOP's refresh requests do. WHOOP's description names no error body, so errors carry the HTTP status and the JSON WHOOP sent.
The synthetic WHOOP removed only a member's access tokens on revocation, so a later refresh still issued working credentials. It now removes their refresh tokens as well, and the test checks that refreshing after revokeAccess yields no credentials.
Cover the flow Widefleet's My connections page uses: the single-use launch link, the OAuth callback, the completion link back to Widefleet, expired links, links opened by another user or twice, and a cancelled authorization returning with the error.
tnkuehne
force-pushed
the
feat/whoop-template
branch
from
November 23, 2026 15:05
7a75eec to
b530656
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
A WHOOP template.
revokeAccessends the app's access and asks as a deletion.Connection.
WHOOP_CLIENT_IDandWHOOP_CLIENT_SECRET. There is no managed client.offlinescope when refreshing, as WHOOP's refresh requests do.template.mdpoints to WHOOP's API Terms of Use and covers the 10-member limit before WHOOP approves a higher tier.Tests
revokeAccesswith approval, refresh and type checks.pnpm check, the generator tests and the template tests.

Confidence Score: 5/5 
The PR appears safe to merge, with no new actionable issues found.Summary
Adds a WHOOP template with 12 typed methods, organization-owned OAuth credentials and per-user connections.
Diagram
Reviews (5) · Last reviewed commit: "Test the WHOOP connection from Widefleet..." · Reviewed by Greptile