netutils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateJWTToken

func GenerateJWTToken(payload JwtPayload, key string) (*string, error)

func GetDecryptedPayload added in v1.0.4

func GetDecryptedPayload(tokenString string, key string) (map[string]interface{}, error)

Types

type Claims

type Claims struct {
	Payload JwtPayload `json:"payload"`
	jwt.RegisteredClaims
}

func GetEncryptedClaims added in v1.0.4

func GetEncryptedClaims(tokenString string) (*Claims, error)

type JwtPayload

type JwtPayload map[string]interface{}

Jump to

Keyboard shortcuts

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