Skip to main content

Module auth

Module auth 

Source

Structs§

TokenResponse

Constants§

AUTH_URL
DEAUTH_URL

Functions§

deauthorize
Revoke an access token.
deauthorize_at
Same as deauthorize but against a caller-supplied URL.
get_token
Exchange an authorization code for an access token, hitting Strava’s production OAuth endpoint.
get_token_at
Same as get_token but against a caller-supplied URL. Useful for integration tests (pointing at httpmock) or for staging/dev OAuth hosts.
refresh_token
Swap an expiring access token for a fresh one using a stored refresh token.
refresh_token_at
Same as refresh_token but against a caller-supplied URL.