feat: Phase 1 — config, auth, OAuth2 PKCE, CLI scaffold, token store

This commit is contained in:
GoCalGoo
2026-04-01 21:25:49 +02:00
parent 514372fa6b
commit 10db895ada
14 changed files with 977 additions and 29 deletions

19
internal/auth/helpers.go Normal file
View File

@@ -0,0 +1,19 @@
package auth
import (
"fmt"
"net/url"
"os"
)
func readFile(path string) ([]byte, error) {
data, err := os.ReadFile(path)
if err != nil {
return nil, fmt.Errorf("read file: %w", err)
}
return data, nil
}
func parseURL(raw string) (*url.URL, error) {
return url.Parse(raw)
}