jwt

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenJwt

func GenJwt(payload Payload, key string) string

Types

type Payload

type Payload struct {
	IdMask string
	Roles  []string
	Expire string
}

func GetPayload

func GetPayload(signingString, key string) (*Payload, error)

type PayloadClaims

type PayloadClaims struct {
	Payload Payload
	gJwt.RegisteredClaims
}

Jump to

Keyboard shortcuts

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