validate

package
v0.85.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "validate <issuer> <rawToken>",
	Short: "Validate JWT",
	Args:  cobra.ExactArgs(2),
	Run: func(cmd *cobra.Command, args []string) {
		err := jwt_utils.ValidateJWT(args[0], args[1])
		if err != nil {
			log.Fatalln(err)
		}
		if FlagVerbose {
			log.Println("JWT is valid")
		}
	},
}
View Source
var FlagVerbose bool

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL