mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-27 14:17:56 +08:00
21 lines
388 B
Go
21 lines
388 B
Go
package jwt
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
"github.com/teamhanko/hanko/backend/config"
|
|
)
|
|
|
|
func NewJwtCmd() *cobra.Command {
|
|
return &cobra.Command{
|
|
Use: "jwt",
|
|
Short: "Tools for handling JSON Web Tokens",
|
|
Long: ``,
|
|
}
|
|
}
|
|
|
|
func RegisterCommands(parent *cobra.Command, cfg *config.Config) {
|
|
cmd := NewJwtCmd()
|
|
parent.AddCommand(cmd)
|
|
cmd.AddCommand(NewCreateCommand(cfg))
|
|
}
|