diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-05 15:02:09 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-05 15:02:09 +0200 |
| commit | b6ca97fe994c46737e0aa5c73e8b3d924ddaecd2 (patch) | |
| tree | 76ed491b85468cb5812bf0d7efafe95fa1cf14f7 /strava/strava.go | |
| parent | 71c39ed9f8ce3563130cdfc5099e9d7df60845a9 (diff) | |
refactor: Remove obsolete Strava helpers and add mise tasks
Diffstat (limited to 'strava/strava.go')
| -rw-r--r-- | strava/strava.go | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/strava/strava.go b/strava/strava.go index c7a84d0..7c555be 100644 --- a/strava/strava.go +++ b/strava/strava.go @@ -12,10 +12,9 @@ import ( ) const ( - AuthURL = "https://www.strava.com/oauth/authorize" - TokenURL = "https://www.strava.com/oauth/token" - APIURL = "https://www.strava.com/api/v3" - LoginPort = 8787 + AuthURL = "https://www.strava.com/oauth/authorize" + TokenURL = "https://www.strava.com/oauth/token" + APIURL = "https://www.strava.com/api/v3" ) var ( @@ -29,10 +28,6 @@ type Token struct { ExpiresAt time.Time } -func AuthorizeURL(clientID, redirectURI string) string { - return AuthorizeURLWithState(clientID, redirectURI, "") -} - func AuthorizeURLWithState(clientID, redirectURI, state string) string { q := url.Values{} q.Set("client_id", clientID) |