myjwt

package
v0.0.0-...-75939a1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateToken

type PrivateToken struct {
	PublicToken
	// contains filtered or unexported fields
}

func New

func New(privateKeyByte, publicKeyByte []byte) (*PrivateToken, error)

func (*PrivateToken) Encode

func (srv *PrivateToken) Encode(userIssues string, up myctx.JwtProfile, ut string) (string, error)

type PublicToken

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

Token jwt

func NewPublic

func NewPublic(publicKeyByte []byte) (*PublicToken, error)

func (*PublicToken) Decode

func (srv *PublicToken) Decode(tokenStr string) (*myctx.JwtCustomClaims, error)

Decode 解码

Jump to

Keyboard shortcuts

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