From b6ca97fe994c46737e0aa5c73e8b3d924ddaecd2 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Wed, 5 Aug 2026 15:02:09 +0200 Subject: refactor: Remove obsolete Strava helpers and add mise tasks --- strava/strava.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'strava/strava.go') 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) -- cgit v1.2.3