jwt

package
v0.0.0-...-e633eee Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncryptAndSign

func EncryptAndSign(encKey, sigKey []byte, data []byte, expires time.Duration) (string, error)

func VerifyAndDecrypt

func VerifyAndDecrypt(encKey, sigKey []byte, tokenString string) (*jwt.Token, error)

Types

type AuthClaims

type AuthClaims struct {
	jwt.StandardClaims
	Data []byte `json:"data"`
}

Jump to

Keyboard shortcuts

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