jwt

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTEncDec

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

func NewJWTEncDec

func NewJWTEncDec(secret string) *JWTEncDec

func (*JWTEncDec) FromToken

func (ed *JWTEncDec) FromToken(token string, kvs map[string]string) (map[string]string, error)

func (*JWTEncDec) ToToken

func (ed *JWTEncDec) ToToken(kvs map[string]string) (string, error)

Jump to

Keyboard shortcuts

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