+3
-3
cmd/goat/account.go
+3
-3
cmd/goat/account.go
···
113
Action: runAccountServiceAuth,
114
},
115
&cli.Command{
116
-
Name: "service-auth-local",
117
Usage: "create service auth token via locally-held signing key",
118
Flags: []cli.Flag{
119
&cli.StringFlag{
···
144
Usage: "validity time window of token (seconds)",
145
},
146
},
147
-
Action: runAccountServiceAuthLocal,
148
},
149
&cli.Command{
150
Name: "create",
···
405
return nil
406
}
407
408
-
func runAccountServiceAuthLocal(cctx *cli.Context) error {
409
privStr := cctx.String("atproto-signing-key")
410
if privStr == "" {
411
return fmt.Errorf("private key must be provided")
···
113
Action: runAccountServiceAuth,
114
},
115
&cli.Command{
116
+
Name: "service-auth-offline",
117
Usage: "create service auth token via locally-held signing key",
118
Flags: []cli.Flag{
119
&cli.StringFlag{
···
144
Usage: "validity time window of token (seconds)",
145
},
146
},
147
+
Action: runAccountServiceAuthOffline,
148
},
149
&cli.Command{
150
Name: "create",
···
405
return nil
406
}
407
408
+
func runAccountServiceAuthOffline(cctx *cli.Context) error {
409
privStr := cctx.String("atproto-signing-key")
410
if privStr == "" {
411
return fmt.Errorf("private key must be provided")