Jtoken

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSecretByPath

func GetSecretByPath(keyPath string) (string, error)

func GetToken

func GetToken(config TokenConfig) string

func ParseToken

func ParseToken(tokenString string, key string) (jwt.MapClaims, error)

Types

type TokenConfig

type TokenConfig struct {
	Key           string
	ID            int64
	StartDuration time.Duration
	StopDuration  time.Duration
	Custom        map[string]interface{}
}

Jump to

Keyboard shortcuts

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