Documentation
¶
Overview ¶
Package auth provides JWK keypair generation for the Bron CLI.
The output format matches `cmd/keygen` in bron-sdk-go: an ES256 (P-256) JWK with a 24-char lowercase alphanumeric kid.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWK ¶
type JWK struct {
Kty string `json:"kty"`
Crv string `json:"crv"`
X string `json:"x"`
Y string `json:"y"`
D string `json:"d,omitempty"`
Kid string `json:"kid"`
}
func (JWK) MarshalCompact ¶
MarshalCompact returns the JWK as compact JSON.
func (JWK) MarshalIndent ¶
MarshalIndent returns the JWK as pretty-printed JSON.
Click to show internal directories.
Click to hide internal directories.