Rename Section to Crew, stage the load pipeline, dedupe lookups and token minting, drop burned tools

This commit is contained in:
Ian Gulliver
2026-08-16 13:21:25 -07:00
parent 8c9c1a6cd6
commit 2b836367e1
17 changed files with 389 additions and 530 deletions
+3 -8
View File
@@ -2,14 +2,13 @@
package main
import (
"crypto/hmac"
"crypto/sha256"
"encoding/base64"
"flag"
"fmt"
"log"
"os"
"time"
"heliosian/internal/auth"
)
func main() {
@@ -19,9 +18,5 @@ func main() {
if key == "" || *email == "" {
log.Fatal("[ERROR] SESSION_KEY and -email are required")
}
payload := fmt.Sprintf("%s|%d", *email, time.Now().Add(24*time.Hour).Unix())
mac := hmac.New(sha256.New, []byte(key))
mac.Write([]byte(payload))
fmt.Println(base64.RawURLEncoding.EncodeToString([]byte(payload)) + "." +
base64.RawURLEncoding.EncodeToString(mac.Sum(nil)))
fmt.Println(auth.Token([]byte(key), *email, time.Now().Add(24*time.Hour)))
}