jwtauthenticator

package
v0.0.0-...-9e48597 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const JWT_ISSUER = "KOZMO Cloud"
View Source
const JWT_TOKEN_DEFAULT_EXIPRED_PERIOD = time.Minute * 30

Variables

This section is empty.

Functions

func GenerateAndSendVerificationCode

func GenerateAndSendVerificationCode(username, usage string) (string, error)

func Validate

func Validate(jwtToken, username, usage string) (bool, error)

Types

type DefaultClaims

type DefaultClaims struct {
	Username string `json:"username"`
	Usage    string `json:"usage"`
	jwt.RegisteredClaims
}

Jump to

Keyboard shortcuts

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