mirror of
https://github.com/sstent/go-garth.git
synced 2026-01-26 00:52:40 +00:00
fixed timecode issue
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
// LoadEnvCredentials loads credentials from .env file
|
||||
func LoadEnvCredentials() (email, password, domain string, err error) {
|
||||
// Determine project root (assuming .env is in the project root)
|
||||
projectRoot := "/home/sstent/Projects/github.com/sstent/go-garth"
|
||||
projectRoot := "/home/sstent/Projects/go-garth"
|
||||
envPath := filepath.Join(projectRoot, ".env")
|
||||
|
||||
// Load .env file
|
||||
@@ -34,4 +34,4 @@ func LoadEnvCredentials() (email, password, domain string, err error) {
|
||||
}
|
||||
|
||||
return email, password, domain, nil
|
||||
}
|
||||
}
|
||||
|
||||
4
internal/auth/credentials/doc.go
Normal file
4
internal/auth/credentials/doc.go
Normal file
@@ -0,0 +1,4 @@
|
||||
// Package credentials provides helpers for loading user credentials and
|
||||
// environment configuration used during authentication and local development.
|
||||
// Note: This is an internal package and not intended for direct external use.
|
||||
package credentials
|
||||
5
internal/auth/oauth/doc.go
Normal file
5
internal/auth/oauth/doc.go
Normal file
@@ -0,0 +1,5 @@
|
||||
// Package oauth contains low-level OAuth1 and OAuth2 flows used by SSO to
|
||||
// obtain and exchange tokens. It handles request signing, headers, and response
|
||||
// parsing to produce strongly-typed token structures for the client.
|
||||
// Note: This is an internal package and not intended for direct external use.
|
||||
package oauth
|
||||
5
internal/auth/sso/doc.go
Normal file
5
internal/auth/sso/doc.go
Normal file
@@ -0,0 +1,5 @@
|
||||
// Package sso implements the Garmin SSO login flow. It orchestrates CSRF,
|
||||
// ticket exchange, MFA placeholders, and token retrieval, delegating OAuth
|
||||
// details to internal/auth/oauth. The internal client consumes this package.
|
||||
// Note: This is an internal package and not intended for direct external use.
|
||||
package sso
|
||||
Reference in New Issue
Block a user