Component evidence
Generates and validates reusable bearer secrets for terminal-control sessions. Use this for secure, persistent authentication in CLI-to-server communication flows.
// Source: https://github.com/superbasedapp/observer | License: Apache-2.0 | Copyright 2026 Gaja AI // Provided via justclaw.it.com; keep this notice with the code. package remoteauth import ( "crypto/rand" "encoding/base64" "fmt" "strings" ) // StandingSecretPrefix marks the encoded standing terminal-control secret. It // is a literal ASCII prefix ending in '.', a character OUTSIDE the base64url // alphabet (A-Za-z0-9-_). A single-use capability token is pure base64url // (randToken), so it can NEVER carry this prefix — the acquire boundary can // therefore branch the reusable standing-secret path from the one-time // capability path with zero collision risk, not merely a low probability. const StandingSecretPrefix = "standing." // StandingSecretBytes is the standing terminal-contr ... (truncated -- full source via MCP)