jwts

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(userInfo interface{}, secret string, issuer string, audience string, expiredMinutes int64) (string, error)

func RefreshToken

func RefreshToken(tokenString string, secret string, addMinutes int64) (string, error)

Types

type CustomClaims

type CustomClaims struct {
	UserInfo interface{}
	jwt.StandardClaims
}

func ParseToken

func ParseToken(tokenString string, secret string) (*CustomClaims, error)

Jump to

Keyboard shortcuts

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