jwt

package
v0.0.0-...-14942be Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenToken

func GenToken(claims CustomClaims, expiresAt time.Time, secret string) (string, error)

Types

type CustomClaims

type CustomClaims struct {
	UserId   uint
	UserName string

	jwt.RegisteredClaims
}

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