post to bluesky when manifests uploaded. linting fixes

This commit is contained in:
Evan Jarrett
2025-10-23 12:24:04 -05:00
parent 220022c9c5
commit 751fa1a3f0
41 changed files with 2701 additions and 490 deletions
+3 -1
View File
@@ -127,7 +127,9 @@ func handleGet() {
fmt.Fprintf(os.Stderr, "Stored credentials for %s are invalid or expired\n", appViewURL)
// Delete the invalid credentials
delete(allCreds.Credentials, appViewURL)
saveDeviceCredentials(configPath, allCreds)
if err := saveDeviceCredentials(configPath, allCreds); err != nil {
fmt.Fprintf(os.Stderr, "Warning: failed to save updated credentials: %v\n", err)
}
// Mark as not found so we re-authorize below
found = false
}
-8
View File
@@ -2,8 +2,6 @@ package main
import (
"context"
"crypto/sha256"
"encoding/base64"
"flag"
"fmt"
"log"
@@ -135,9 +133,3 @@ func generateDPoPProof(session *indigo_oauth.ClientSession, method, reqURL strin
// Use the session's NewHostDPoP method to generate the proof
return session.NewHostDPoP(method, reqURL)
}
// sha256Hash computes SHA-256 hash and returns base64url-encoded string
func sha256Hash(data []byte) string {
hash := sha256.Sum256(data)
return base64.RawURLEncoding.EncodeToString(hash[:])
}