security

package
v0.0.0-...-318ce3a Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ACCESS  = "access"
	REFRESH = "refresh"
)

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(t, username string) (string, error)

Types

type CustomClaims

type CustomClaims struct {
	jwt.StandardClaims
	Identity string `json:"identity"`
}

func (CustomClaims) Valid

func (c CustomClaims) Valid() error

Jump to

Keyboard shortcuts

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