jwt

package
v0.1.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthBearerToken

func AuthBearerToken(c Config, tokenString string) (map[string]interface{}, error)

func GenToken

func GenToken(c Config, data map[string]interface{}) (map[string]interface{}, error)

Types

type Config

type Config struct {
	Export    int
	Secretary string
}

type CustomClaims

type CustomClaims struct {
	Data map[string]interface{}
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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