SweatStack

Sign in with SweatStack.

One button to rule them all.

This is a live demo of Sign in with SweatStack, the one button that replaces your whole login and registration. Your users authenticate with the wearable account they already have, and SweatStack handles the rest: sign-in, account creation, their profile and email, and the data backfill.

Sign in below and watch exactly what happens on the wire.

What this button actually does

It runs the standard OAuth2 PKCE flow for public (browser) clients. We generate a one-time code verifier, hash it into a challenge, and redirect you to SweatStack's authorize endpoint. No client secret ever touches the browser. See the authentication docs.

# building authorize URL…

Reference: Sign in with SweatStack · docs

Signing you in…

Exchanging your authorization code for an access token…

Something interrupted the flow

You're signed in!

Under the hood: the token exchange

Your browser swapped the one-time code for an access token. It is a plain POST with no secret, proving it holds the PKCE verifier:


        

SweatStack responded:


        

Reference: OAuth2 & PKCE docs

What that one button just unlocked

✓ Identity & email live
Fetching /oauth/userinfo…

Enough to create this user's account in your product before any data loads. scopes & userinfo ↗

✓ Latest activity, already queryable live
Fetching /activities/latest…
✓ Years of history, backfilling automatically live
Starting…

This is exactly how your app shows new users a live loading state instead of an empty screen. onboarding & backfill guide ↗

✓ One unified data model capability

Every activity has the same shape regardless of source, whether Garmin, Intervals.icu, or more, so you write your code once. data model ↗

✓ Months or years in a single query capability

Longitudinal endpoints return data across all matching activities at once. No pipeline to maintain, and no upstream wearable rate limits to manage. activities data ↗

✓ Push workouts back to their wearable capability

Schedule a structured workout and SweatStack fans it out to the athlete's connected platforms like Garmin Connect, typically within seconds. Your prescriptions land on their device. workout fanout ↗

Requires the data:write scope, which this read-only demo doesn't use.

✓ A real toolchain capability

Python SDK, CLI, an in-browser REPL, and hosted Pages. This demo is deployed on them. libraries & tools ↗

Where to go next

That whole experience, sign-in, identity, and live backfill, is one OAuth redirect and a handful of GET requests. Start building.

Build an app   Sign in with SweatStack guide

Want to watch the first-time flow again?

You now have a SweatStack session, so signing back in is instant (that's the point!). To replay onboarding as a brand-new user, first log out of SweatStack ↗, then sign out here and sign in again.

Powered by SweatStack · Built with Skills