token

package
v0.0.0-...-1f5092a Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWT

type JWT struct {
	// contains filtered or unexported fields
}

func NewJWT

func NewJWT(privateKey []byte, publicKey []byte) JWT

func (JWT) Create

func (j JWT) Create(ttl time.Duration, content interface{}, audience string, subtituteClaim map[string]string) (string, error)

func (JWT) Validate

func (j JWT) Validate(token string) (*jwt.MapClaims, error)

Jump to

Keyboard shortcuts

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