Overview
Stratiles uses Strava’s OAuth 2.0 authentication to securely access your activity data. The app requests read-only access to your activities and never modifies or deletes your Strava data.Connecting Your Account
Open Stratiles
Launch the Stratiles app on your iOS device. You’ll be prompted to connect your Strava account.
Authorize with Strava
Tap “Connect with Strava” to open the Strava authorization page in your browser. You’ll be asked to log in to Strava if you’re not already signed in.
Grant Permissions
Review the permissions Stratiles is requesting:
- Read your activity data
- View your profile information
How Authentication Works
Stratiles implements Strava’s OAuth 2.0 flow with automatic token refresh:- Authorization: When you connect, Stratiles redirects to
https://www.strava.com/oauth/authorizewith your authorization request - Token Exchange: After authorization, Stratiles exchanges the authorization code for access and refresh tokens
- Secure Storage: Tokens are stored securely in the iOS Keychain using the TokenManager
- Automatic Refresh: Access tokens expire after 6 hours. Stratiles automatically refreshes them using your refresh token without requiring re-authentication
Stratiles uses the custom URL scheme
stratiles://localhost/callback to handle the OAuth redirect back to the app.Disconnecting Your Account
You can disconnect your Strava account at any time from the Settings screen.Sign Out
Scroll to the bottom and tap “Sign Out”. This will:
- Clear all stored authentication tokens
- Remove cached activity data
- Reload all widgets to clear their data
Troubleshooting
Authorization fails or times out
Authorization fails or times out
Can't return to app after authorizing
Can't return to app after authorizing
Token refresh errors
Token refresh errors
If you see errors about expired or invalid tokens:
- The app automatically handles token refresh when access tokens expire
- If refresh fails repeatedly, try signing out and reconnecting
- Strava refresh tokens are long-lived and should not expire under normal use
Activities not syncing
Activities not syncing
If your activities aren’t appearing after connecting:
- Wait a moment for the initial sync to complete
- Check that you’ve selected the correct activity types in Settings
- Verify your Strava account has activities in the selected types
- The app fetches up to 800 activities (8 pages × 100 per page) from the Strava API
Privacy & Security
- Stratiles only requests read access to your activities
- Authentication tokens are stored securely in the iOS Keychain
- Your Strava credentials are never stored in the app
- All API requests use HTTPS encryption
- You can revoke Stratiles’ access anytime from your Strava settings