This commit is contained in:
2025-09-18 05:40:45 -07:00
parent 030ad360c2
commit 7da16e55a9
20 changed files with 843 additions and 219 deletions

View File

@@ -2,6 +2,7 @@ package client_test
import (
"net/http"
"net/url"
"testing"
"garmin-connect/garth/testutils"
@@ -25,7 +26,9 @@ func TestClient_Login_Success(t *testing.T) {
// Create client with test configuration
c, err := client.NewClient("example.com")
require.NoError(t, err)
c.Domain = ssoServer.URL
// Set domain to just the host (without scheme)
u, _ := url.Parse(ssoServer.URL)
c.Domain = u.Host
// Perform login
err = c.Login("test@example.com", "password")