jwt

package
v0.0.0-...-6fd7e0b Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(c SecurityUser, key string) (string, error)

CreateToken generate token

func NewWhiteListMatcher

func NewWhiteListMatcher() selector.MatchFunc

Types

type SecurityUser

type SecurityUser struct {
	auth.ASecurityUser
	ID            uint64
	NickName      string
	AuthorityName string
	RoleIds       string
	jwtV4.RegisteredClaims
}

Jump to

Keyboard shortcuts

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